Home
last modified time | relevance | path

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

/linux-6.1.9/fs/ceph/
Dutil.c93 CEPH_CAP_FILE_WR | CEPH_CAP_FILE_BUFFER | in ceph_caps_for_mode()
Dsnap.c542 if (used & CEPH_CAP_FILE_WR) in ceph_queue_cap_snap()
543 dirty |= CEPH_CAP_FILE_WR; in ceph_queue_cap_snap()
555 !(dirty & (CEPH_CAP_ANY_EXCL|CEPH_CAP_FILE_WR))) { in ceph_queue_cap_snap()
572 if (dirty & (CEPH_CAP_ANY_EXCL|CEPH_CAP_FILE_WR)) in ceph_queue_cap_snap()
575 if (!(used & CEPH_CAP_FILE_WR) && in ceph_queue_cap_snap()
616 if (used & CEPH_CAP_FILE_WR) { in ceph_queue_cap_snap()
Dfile.c322 if ((wanted & CEPH_CAP_FILE_RD) && (wanted & CEPH_CAP_FILE_WR)) in ceph_renew_caps()
326 else if (wanted & CEPH_CAP_FILE_WR) in ceph_renew_caps()
1099 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_aio_complete()
1107 ceph_put_cap_refs(ci, (aio_req->write ? CEPH_CAP_FILE_WR : in ceph_aio_complete()
1437 ceph_get_cap_refs(ci, write ? CEPH_CAP_FILE_WR : in ceph_direct_read_write()
1839 err = ceph_get_caps(file, CEPH_CAP_FILE_WR, want, pos + count, &got); in ceph_write_iter()
1903 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_write_iter()
2125 ret = ceph_get_caps(file, CEPH_CAP_FILE_WR, want, endoff, &got); in ceph_fallocate()
2136 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_fallocate()
2164 ret = ceph_get_caps(dst_filp, CEPH_CAP_FILE_WR, CEPH_CAP_FILE_BUFFER, in get_rd_wr_caps()
[all …]
Dinode.c660 CEPH_CAP_FILE_WR | in ceph_fill_file_size()
694 CEPH_CAP_FILE_WR| in ceph_fill_file_time()
2041 (issued & (CEPH_CAP_ANY_EXCL | CEPH_CAP_FILE_WR))) { in __ceph_setattr()
2106 } else if ((issued & CEPH_CAP_FILE_WR) && in __ceph_setattr()
2110 dirtied |= CEPH_CAP_FILE_WR; in __ceph_setattr()
2117 CEPH_CAP_FILE_RD | CEPH_CAP_FILE_WR; in __ceph_setattr()
2138 CEPH_CAP_FILE_RD | CEPH_CAP_FILE_WR; in __ceph_setattr()
2149 } else if ((issued & CEPH_CAP_FILE_WR) && in __ceph_setattr()
2153 dirtied |= CEPH_CAP_FILE_WR; in __ceph_setattr()
2160 CEPH_CAP_FILE_RD | CEPH_CAP_FILE_WR; in __ceph_setattr()
Dcaps.c977 used |= CEPH_CAP_FILE_WR; in __ceph_caps_used()
1881 if (ci->i_flushing_caps & CEPH_CAP_FILE_WR) in __ceph_should_report_size()
2042 (cap->issued & CEPH_CAP_FILE_WR)) { in ceph_check_caps()
2644 if (got & CEPH_CAP_FILE_WR) { in ceph_take_cap_refs()
2715 if (have & need & CEPH_CAP_FILE_WR) { in try_get_cap_refs()
2752 (need & CEPH_CAP_FILE_WR)) { in try_get_cap_refs()
2781 (need & (CEPH_CAP_FILE_WR | CEPH_CAP_FILE_EXCL))) { in try_get_cap_refs()
2848 (ci->i_auth_cap->issued & CEPH_CAP_FILE_WR) && in check_max_size()
2862 if (caps & CEPH_CAP_FILE_WR) in get_used_fmode()
3105 if (had & CEPH_CAP_FILE_WR) { in __ceph_put_cap_refs()
Daddr.c1531 err = ceph_get_caps(vma->vm_file, CEPH_CAP_FILE_WR, want, off + len, &got); in ceph_page_mkwrite()
1577 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_page_mkwrite()
1748 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, &prealloc_cf); in ceph_uninline_data()
1999 if ((need & CEPH_CAP_FILE_WR) && !(flags & CEPH_I_POOL_WR)) { in ceph_pool_perm_check()
/linux-6.1.9/include/linux/ceph/
Dceph_fs.h661 #define CEPH_CAP_FILE_WR (CEPH_CAP_GWR << CEPH_CAP_SFILE) macro
704 #define CEPH_CAP_ANY_FILE_WR (CEPH_CAP_FILE_WR | CEPH_CAP_FILE_BUFFER | \