Lines Matching refs:ci

140 	struct ceph_inode_info *ci = ceph_inode(inode);  in ceph_init_file()  local
154 ceph_fscache_register_inode_cookie(mdsc->fsc, ci); in ceph_init_file()
202 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_open() local
231 spin_lock(&ci->i_ceph_lock); in ceph_open()
232 __ceph_get_fmode(ci, fmode); in ceph_open()
233 spin_unlock(&ci->i_ceph_lock); in ceph_open()
242 spin_lock(&ci->i_ceph_lock); in ceph_open()
243 if (__ceph_is_any_real_caps(ci) && in ceph_open()
244 (((fmode & CEPH_FILE_MODE_WR) == 0) || ci->i_auth_cap)) { in ceph_open()
245 int mds_wanted = __ceph_caps_mds_wanted(ci); in ceph_open()
246 int issued = __ceph_caps_issued(ci, NULL); in ceph_open()
251 __ceph_get_fmode(ci, fmode); in ceph_open()
252 spin_unlock(&ci->i_ceph_lock); in ceph_open()
258 ceph_check_caps(ci, 0, NULL); in ceph_open()
262 (ci->i_snap_caps & wanted) == wanted) { in ceph_open()
263 __ceph_get_fmode(ci, fmode); in ceph_open()
264 spin_unlock(&ci->i_ceph_lock); in ceph_open()
268 spin_unlock(&ci->i_ceph_lock); in ceph_open()
383 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_release() local
387 ceph_put_fmode(ci, cf->fmode); in ceph_release()
395 wake_up_all(&ci->i_cap_wq); in ceph_release()
418 struct ceph_inode_info *ci = ceph_inode(inode); in striped_read() local
444 &ci->i_layout, pos, &this_len, in striped_read()
445 ci->i_truncate_seq, in striped_read()
446 ci->i_truncate_size, in striped_read()
596 struct ceph_inode_info *ci = ceph_inode(req->r_inode); in ceph_sync_write_unsafe() local
601 ceph_get_cap_refs(ci, CEPH_CAP_FILE_WR); in ceph_sync_write_unsafe()
602 spin_lock(&ci->i_unsafe_lock); in ceph_sync_write_unsafe()
604 &ci->i_unsafe_writes); in ceph_sync_write_unsafe()
605 spin_unlock(&ci->i_unsafe_lock); in ceph_sync_write_unsafe()
607 spin_lock(&ci->i_unsafe_lock); in ceph_sync_write_unsafe()
609 spin_unlock(&ci->i_unsafe_lock); in ceph_sync_write_unsafe()
610 ceph_put_cap_refs(ci, CEPH_CAP_FILE_WR); in ceph_sync_write_unsafe()
628 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_sync_direct_write() local
667 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_sync_direct_write()
671 ci->i_truncate_seq, in ceph_sync_direct_write()
672 ci->i_truncate_size, in ceph_sync_direct_write()
744 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_sync_write() local
783 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_sync_write()
786 ci->i_truncate_seq, in ceph_sync_write()
787 ci->i_truncate_size, in ceph_sync_write()
873 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_read_iter() local
887 ret = ceph_get_caps(ci, CEPH_CAP_FILE_RD, want, -1, &got, &pinned_page); in ceph_read_iter()
899 if (ci->i_inline_version == CEPH_INLINE_NONE) { in ceph_read_iter()
918 ceph_put_cap_refs(ci, got); in ceph_read_iter()
1002 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_write_iter() local
1042 if (ci->i_inline_version != CEPH_INLINE_NONE) { in ceph_write_iter()
1061 err = ceph_get_caps(ci, CEPH_CAP_FILE_WR, want, pos + count, in ceph_write_iter()
1075 spin_lock(&ci->i_ceph_lock); in ceph_write_iter()
1076 if (__ceph_have_pending_cap_snap(ci)) { in ceph_write_iter()
1078 list_last_entry(&ci->i_cap_snaps, in ceph_write_iter()
1083 BUG_ON(!ci->i_head_snapc); in ceph_write_iter()
1084 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_write_iter()
1086 spin_unlock(&ci->i_ceph_lock); in ceph_write_iter()
1125 spin_lock(&ci->i_ceph_lock); in ceph_write_iter()
1126 ci->i_inline_version = CEPH_INLINE_NONE; in ceph_write_iter()
1127 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_write_iter()
1129 spin_unlock(&ci->i_ceph_lock); in ceph_write_iter()
1137 ceph_put_cap_refs(ci, got); in ceph_write_iter()
1254 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_zero_partial_object() local
1268 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_zero_partial_object()
1298 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_zero_objects() local
1299 s32 stripe_unit = ceph_file_layout_su(ci->i_layout); in ceph_zero_objects()
1300 s32 stripe_count = ceph_file_layout_stripe_count(ci->i_layout); in ceph_zero_objects()
1301 s32 object_size = ceph_file_layout_object_size(ci->i_layout); in ceph_zero_objects()
1346 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_fallocate() local
1379 if (ci->i_inline_version != CEPH_INLINE_NONE) { in ceph_fallocate()
1394 ret = ceph_get_caps(ci, CEPH_CAP_FILE_WR, want, endoff, &got, NULL); in ceph_fallocate()
1410 spin_lock(&ci->i_ceph_lock); in ceph_fallocate()
1411 ci->i_inline_version = CEPH_INLINE_NONE; in ceph_fallocate()
1412 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR, in ceph_fallocate()
1414 spin_unlock(&ci->i_ceph_lock); in ceph_fallocate()
1419 ceph_put_cap_refs(ci, got); in ceph_fallocate()