Home
last modified time | relevance | path

Searched refs:CEPH_CAP_FILE_WR (Results 1 – 6 of 6) sorted by relevance

/linux-4.19.296/fs/ceph/
Dsnap.c484 if (used & CEPH_CAP_FILE_WR) in ceph_queue_cap_snap()
485 dirty |= CEPH_CAP_FILE_WR; in ceph_queue_cap_snap()
496 !(dirty & (CEPH_CAP_ANY_EXCL|CEPH_CAP_FILE_WR))) { in ceph_queue_cap_snap()
512 if (dirty & (CEPH_CAP_ANY_EXCL|CEPH_CAP_FILE_WR)) in ceph_queue_cap_snap()
515 if (!(used & CEPH_CAP_FILE_WR) && in ceph_queue_cap_snap()
559 if (used & CEPH_CAP_FILE_WR) { in ceph_queue_cap_snap()
Dfile.c302 if ((wanted & CEPH_CAP_FILE_RD) && (wanted & CEPH_CAP_FILE_WR)) in ceph_renew_caps()
306 else if (wanted & CEPH_CAP_FILE_WR) in ceph_renew_caps()
764 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_aio_complete()
772 ceph_put_cap_refs(ci, (aio_req->write ? CEPH_CAP_FILE_WR : in ceph_aio_complete()
1086 ceph_get_cap_refs(ci, write ? CEPH_CAP_FILE_WR : in ceph_direct_read_write()
1468 err = ceph_get_caps(ci, CEPH_CAP_FILE_WR, want, pos + count, in ceph_write_iter()
1525 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_write_iter()
1793 ret = ceph_get_caps(ci, CEPH_CAP_FILE_WR, want, endoff, &got, NULL); in ceph_fallocate()
1803 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_fallocate()
Dinode.c636 CEPH_CAP_FILE_WR | in ceph_fill_file_size()
674 CEPH_CAP_FILE_WR| in ceph_fill_file_time()
1990 (issued & (CEPH_CAP_ANY_EXCL | CEPH_CAP_FILE_WR))) { in __ceph_setattr()
2055 } else if ((issued & CEPH_CAP_FILE_WR) && in __ceph_setattr()
2059 dirtied |= CEPH_CAP_FILE_WR; in __ceph_setattr()
2066 CEPH_CAP_FILE_RD | CEPH_CAP_FILE_WR; in __ceph_setattr()
2077 } else if ((issued & CEPH_CAP_FILE_WR) && in __ceph_setattr()
2081 dirtied |= CEPH_CAP_FILE_WR; in __ceph_setattr()
2088 CEPH_CAP_FILE_RD | CEPH_CAP_FILE_WR; in __ceph_setattr()
2107 CEPH_CAP_FILE_RD | CEPH_CAP_FILE_WR; in __ceph_setattr()
Dcaps.c453 if (cap->issued & (CEPH_CAP_FILE_WR | in __ceph_get_cap_mds()
959 used |= CEPH_CAP_FILE_WR; in __ceph_caps_used()
1810 if (ci->i_flushing_caps & CEPH_CAP_FILE_WR) in __ceph_should_report_size()
1957 (cap->issued & CEPH_CAP_FILE_WR)) { in ceph_check_caps()
2512 if (got & CEPH_CAP_FILE_WR) { in __take_cap_refs()
2575 if (have & need & CEPH_CAP_FILE_WR) { in try_get_cap_refs()
2610 (need & CEPH_CAP_FILE_WR)) { in try_get_cap_refs()
2638 if ((need & CEPH_CAP_FILE_WR) && ci->i_auth_cap) { in try_get_cap_refs()
2705 (ci->i_auth_cap->issued & CEPH_CAP_FILE_WR) && in check_max_size()
2898 if (had & CEPH_CAP_FILE_WR) in ceph_put_cap_refs()
Daddr.c1566 err = ceph_get_caps(ci, CEPH_CAP_FILE_WR, want, off + len, in ceph_page_mkwrite()
1599 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_page_mkwrite()
2016 if ((need & CEPH_CAP_FILE_WR) && !(flags & CEPH_I_POOL_WR)) { in ceph_pool_perm_check()
/linux-4.19.296/include/linux/ceph/
Dceph_fs.h603 #define CEPH_CAP_FILE_WR (CEPH_CAP_GWR << CEPH_CAP_SFILE) macro
646 #define CEPH_CAP_ANY_FILE_WR (CEPH_CAP_FILE_WR | CEPH_CAP_FILE_BUFFER | \