Home
last modified time | relevance | path

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

/Linux-v5.4/fs/ceph/
Dsnap.c489 if (used & CEPH_CAP_FILE_WR) in ceph_queue_cap_snap()
490 dirty |= CEPH_CAP_FILE_WR; in ceph_queue_cap_snap()
501 !(dirty & (CEPH_CAP_ANY_EXCL|CEPH_CAP_FILE_WR))) { in ceph_queue_cap_snap()
517 if (dirty & (CEPH_CAP_ANY_EXCL|CEPH_CAP_FILE_WR)) in ceph_queue_cap_snap()
520 if (!(used & CEPH_CAP_FILE_WR) && in ceph_queue_cap_snap()
564 if (used & CEPH_CAP_FILE_WR) { in ceph_queue_cap_snap()
Dfile.c309 if ((wanted & CEPH_CAP_FILE_RD) && (wanted & CEPH_CAP_FILE_WR)) in ceph_renew_caps()
313 else if (wanted & CEPH_CAP_FILE_WR) in ceph_renew_caps()
776 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_aio_complete()
784 ceph_put_cap_refs(ci, (aio_req->write ? CEPH_CAP_FILE_WR : in ceph_aio_complete()
1093 ceph_get_cap_refs(ci, write ? CEPH_CAP_FILE_WR : in ceph_direct_read_write()
1493 err = ceph_get_caps(file, CEPH_CAP_FILE_WR, want, pos + count, in ceph_write_iter()
1552 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_write_iter()
1821 ret = ceph_get_caps(file, CEPH_CAP_FILE_WR, want, endoff, &got, NULL); in ceph_fallocate()
1831 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_fallocate()
1858 ret = ceph_get_caps(dst_filp, CEPH_CAP_FILE_WR, CEPH_CAP_FILE_BUFFER, in get_rd_wr_caps()
[all …]
Dinode.c626 CEPH_CAP_FILE_WR | in ceph_fill_file_size()
664 CEPH_CAP_FILE_WR| in ceph_fill_file_time()
2019 (issued & (CEPH_CAP_ANY_EXCL | CEPH_CAP_FILE_WR))) { in __ceph_setattr()
2084 } else if ((issued & CEPH_CAP_FILE_WR) && in __ceph_setattr()
2088 dirtied |= CEPH_CAP_FILE_WR; in __ceph_setattr()
2095 CEPH_CAP_FILE_RD | CEPH_CAP_FILE_WR; in __ceph_setattr()
2115 CEPH_CAP_FILE_RD | CEPH_CAP_FILE_WR; in __ceph_setattr()
2126 } else if ((issued & CEPH_CAP_FILE_WR) && in __ceph_setattr()
2130 dirtied |= CEPH_CAP_FILE_WR; in __ceph_setattr()
2137 CEPH_CAP_FILE_RD | CEPH_CAP_FILE_WR; in __ceph_setattr()
Dcaps.c964 used |= CEPH_CAP_FILE_WR; in __ceph_caps_used()
1795 if (ci->i_flushing_caps & CEPH_CAP_FILE_WR) in __ceph_should_report_size()
1945 (cap->issued & CEPH_CAP_FILE_WR)) { in ceph_check_caps()
2506 if (got & CEPH_CAP_FILE_WR) { in __take_cap_refs()
2585 if (have & need & CEPH_CAP_FILE_WR) { in try_get_cap_refs()
2618 (need & CEPH_CAP_FILE_WR)) { in try_get_cap_refs()
2645 if ((need & CEPH_CAP_FILE_WR) && ci->i_auth_cap) { in try_get_cap_refs()
2709 (ci->i_auth_cap->issued & CEPH_CAP_FILE_WR) && in check_max_size()
2908 if (had & CEPH_CAP_FILE_WR) in ceph_put_cap_refs()
Daddr.c1563 err = ceph_get_caps(vma->vm_file, CEPH_CAP_FILE_WR, want, off + len, in ceph_page_mkwrite()
1597 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_page_mkwrite()
2021 if ((need & CEPH_CAP_FILE_WR) && !(flags & CEPH_I_POOL_WR)) { in ceph_pool_perm_check()
/Linux-v5.4/net/ceph/
Dceph_fs.c96 CEPH_CAP_FILE_WR | CEPH_CAP_FILE_BUFFER | in ceph_caps_for_mode()
/Linux-v5.4/include/linux/ceph/
Dceph_fs.h609 #define CEPH_CAP_FILE_WR (CEPH_CAP_GWR << CEPH_CAP_SFILE) macro
652 #define CEPH_CAP_ANY_FILE_WR (CEPH_CAP_FILE_WR | CEPH_CAP_FILE_BUFFER | \