Home
last modified time | relevance | path

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

/linux-4.1.27/net/ceph/
Dceph_fs.c70 CEPH_CAP_FILE_WR | CEPH_CAP_FILE_BUFFER | in ceph_caps_for_mode()
/linux-4.1.27/fs/ceph/
Dsnap.c475 if (used & CEPH_CAP_FILE_WR) in ceph_queue_cap_snap()
476 dirty |= CEPH_CAP_FILE_WR; in ceph_queue_cap_snap()
489 CEPH_CAP_FILE_EXCL|CEPH_CAP_FILE_WR)) { in ceph_queue_cap_snap()
539 if (used & CEPH_CAP_FILE_WR) { in ceph_queue_cap_snap()
Dfile.c538 ceph_get_cap_refs(ci, CEPH_CAP_FILE_WR); in ceph_sync_write_unsafe()
547 ceph_put_cap_refs(ci, CEPH_CAP_FILE_WR); in ceph_sync_write_unsafe()
989 err = ceph_get_caps(ci, CEPH_CAP_FILE_WR, want, pos + count, in ceph_write_iter()
1038 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR); in ceph_write_iter()
1298 ret = ceph_get_caps(ci, CEPH_CAP_FILE_WR, want, endoff, &got, NULL); in ceph_fallocate()
1316 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR); in ceph_fallocate()
Dinode.c562 CEPH_CAP_FILE_WR | in ceph_fill_file_size()
600 CEPH_CAP_FILE_WR| in ceph_fill_file_time()
1797 } else if ((issued & CEPH_CAP_FILE_WR) && in ceph_setattr()
1801 dirtied |= CEPH_CAP_FILE_WR; in ceph_setattr()
1808 CEPH_CAP_FILE_WR; in ceph_setattr()
1819 } else if ((issued & CEPH_CAP_FILE_WR) && in ceph_setattr()
1823 dirtied |= CEPH_CAP_FILE_WR; in ceph_setattr()
1830 CEPH_CAP_FILE_WR; in ceph_setattr()
1851 CEPH_CAP_FILE_WR; in ceph_setattr()
Dcaps.c350 if (cap->issued & (CEPH_CAP_FILE_WR | in __ceph_get_cap_mds()
839 used |= CEPH_CAP_FILE_WR; in __ceph_caps_used()
1654 (cap->issued & CEPH_CAP_FILE_WR)) { in ceph_check_caps()
2084 if (got & CEPH_CAP_FILE_WR) in __take_cap_refs()
2134 if (have & need & CEPH_CAP_FILE_WR) { in try_get_cap_refs()
2173 if ((need & CEPH_CAP_FILE_WR) && ci->i_auth_cap) { in try_get_cap_refs()
2217 (ci->i_auth_cap->issued & CEPH_CAP_FILE_WR) && in check_max_size()
2325 if (had & CEPH_CAP_FILE_WR) in ceph_put_cap_refs()
Daddr.c1350 ret = ceph_get_caps(ci, CEPH_CAP_FILE_WR, want, off + len, in ceph_page_mkwrite()
1392 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR); in ceph_page_mkwrite()
/linux-4.1.27/include/linux/ceph/
Dceph_fs.h560 #define CEPH_CAP_FILE_WR (CEPH_CAP_GWR << CEPH_CAP_SFILE) macro
602 #define CEPH_CAP_ANY_FILE_WR (CEPH_CAP_FILE_WR | CEPH_CAP_FILE_BUFFER | \