Home
last modified time | relevance | path

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

/Linux-v4.19/fs/ceph/
Dsnap.c483 if (used & CEPH_CAP_FILE_WR) in ceph_queue_cap_snap()
484 dirty |= CEPH_CAP_FILE_WR; in ceph_queue_cap_snap()
495 !(dirty & (CEPH_CAP_ANY_EXCL|CEPH_CAP_FILE_WR))) { in ceph_queue_cap_snap()
511 if (dirty & (CEPH_CAP_ANY_EXCL|CEPH_CAP_FILE_WR)) in ceph_queue_cap_snap()
514 if (!(used & CEPH_CAP_FILE_WR) && in ceph_queue_cap_snap()
558 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()
760 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_aio_complete()
768 ceph_put_cap_refs(ci, (aio_req->write ? CEPH_CAP_FILE_WR : in ceph_aio_complete()
1082 ceph_get_cap_refs(ci, write ? CEPH_CAP_FILE_WR : in ceph_direct_read_write()
1457 err = ceph_get_caps(ci, CEPH_CAP_FILE_WR, want, pos + count, in ceph_write_iter()
1514 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_write_iter()
1797 ret = ceph_get_caps(ci, CEPH_CAP_FILE_WR, want, endoff, &got, NULL); in ceph_fallocate()
1815 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_fallocate()
Dinode.c630 CEPH_CAP_FILE_WR | in ceph_fill_file_size()
668 CEPH_CAP_FILE_WR| in ceph_fill_file_time()
1970 (issued & (CEPH_CAP_ANY_EXCL | CEPH_CAP_FILE_WR))) { in __ceph_setattr()
2035 } else if ((issued & CEPH_CAP_FILE_WR) && in __ceph_setattr()
2039 dirtied |= CEPH_CAP_FILE_WR; in __ceph_setattr()
2046 CEPH_CAP_FILE_RD | CEPH_CAP_FILE_WR; in __ceph_setattr()
2057 } else if ((issued & CEPH_CAP_FILE_WR) && in __ceph_setattr()
2061 dirtied |= CEPH_CAP_FILE_WR; in __ceph_setattr()
2068 CEPH_CAP_FILE_RD | CEPH_CAP_FILE_WR; in __ceph_setattr()
2087 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()
1786 if (ci->i_flushing_caps & CEPH_CAP_FILE_WR) in __ceph_should_report_size()
1933 (cap->issued & CEPH_CAP_FILE_WR)) { in ceph_check_caps()
2472 if (got & CEPH_CAP_FILE_WR) { in __take_cap_refs()
2535 if (have & need & CEPH_CAP_FILE_WR) { in try_get_cap_refs()
2570 (need & CEPH_CAP_FILE_WR)) { in try_get_cap_refs()
2598 if ((need & CEPH_CAP_FILE_WR) && ci->i_auth_cap) { in try_get_cap_refs()
2665 (ci->i_auth_cap->issued & CEPH_CAP_FILE_WR) && in check_max_size()
2858 if (had & CEPH_CAP_FILE_WR) in ceph_put_cap_refs()
Daddr.c1573 err = ceph_get_caps(ci, CEPH_CAP_FILE_WR, want, off + len, in ceph_page_mkwrite()
1606 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_page_mkwrite()
2023 if ((need & CEPH_CAP_FILE_WR) && !(flags & CEPH_I_POOL_WR)) { in ceph_pool_perm_check()
/Linux-v4.19/net/ceph/
Dceph_fs.c96 CEPH_CAP_FILE_WR | CEPH_CAP_FILE_BUFFER | in ceph_caps_for_mode()
/Linux-v4.19/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 | \