Lines Matching refs:ci

72 	struct ceph_inode_info *ci = ceph_inode(inode);  in ceph_init_file()  local
86 ceph_fscache_register_inode_cookie(mdsc->fsc, ci); in ceph_init_file()
133 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_open() local
163 spin_lock(&ci->i_ceph_lock); in ceph_open()
164 __ceph_get_fmode(ci, fmode); in ceph_open()
165 spin_unlock(&ci->i_ceph_lock); in ceph_open()
174 spin_lock(&ci->i_ceph_lock); in ceph_open()
175 if (__ceph_is_any_real_caps(ci) && in ceph_open()
176 (((fmode & CEPH_FILE_MODE_WR) == 0) || ci->i_auth_cap)) { in ceph_open()
177 int mds_wanted = __ceph_caps_mds_wanted(ci); in ceph_open()
178 int issued = __ceph_caps_issued(ci, NULL); in ceph_open()
183 __ceph_get_fmode(ci, fmode); in ceph_open()
184 spin_unlock(&ci->i_ceph_lock); in ceph_open()
190 ceph_check_caps(ci, 0, NULL); in ceph_open()
194 (ci->i_snap_caps & wanted) == wanted) { in ceph_open()
195 __ceph_get_fmode(ci, fmode); in ceph_open()
196 spin_unlock(&ci->i_ceph_lock); in ceph_open()
200 spin_unlock(&ci->i_ceph_lock); in ceph_open()
318 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_release() local
322 ceph_put_fmode(ci, cf->fmode); in ceph_release()
331 wake_up_all(&ci->i_cap_wq); in ceph_release()
354 struct ceph_inode_info *ci = ceph_inode(inode); in striped_read() local
380 &ci->i_layout, pos, &this_len, in striped_read()
381 ci->i_truncate_seq, in striped_read()
382 ci->i_truncate_size, in striped_read()
533 struct ceph_inode_info *ci = ceph_inode(req->r_inode); in ceph_sync_write_unsafe() local
538 ceph_get_cap_refs(ci, CEPH_CAP_FILE_WR); in ceph_sync_write_unsafe()
539 spin_lock(&ci->i_unsafe_lock); in ceph_sync_write_unsafe()
541 &ci->i_unsafe_writes); in ceph_sync_write_unsafe()
542 spin_unlock(&ci->i_unsafe_lock); in ceph_sync_write_unsafe()
544 spin_lock(&ci->i_unsafe_lock); in ceph_sync_write_unsafe()
546 spin_unlock(&ci->i_unsafe_lock); in ceph_sync_write_unsafe()
547 ceph_put_cap_refs(ci, CEPH_CAP_FILE_WR); in ceph_sync_write_unsafe()
564 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_sync_direct_write() local
603 snapc = ci->i_snap_realm->cached_context; in ceph_sync_direct_write()
605 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_sync_direct_write()
609 ci->i_truncate_seq, in ceph_sync_direct_write()
610 ci->i_truncate_size, in ceph_sync_direct_write()
681 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_sync_write() local
720 snapc = ci->i_snap_realm->cached_context; in ceph_sync_write()
722 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_sync_write()
725 ci->i_truncate_seq, in ceph_sync_write()
726 ci->i_truncate_size, in ceph_sync_write()
812 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_read_iter() local
826 ret = ceph_get_caps(ci, CEPH_CAP_FILE_RD, want, -1, &got, &pinned_page); in ceph_read_iter()
838 if (ci->i_inline_version == CEPH_INLINE_NONE) { in ceph_read_iter()
857 ceph_put_cap_refs(ci, got); in ceph_read_iter()
941 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_write_iter() local
970 if (ci->i_inline_version != CEPH_INLINE_NONE) { in ceph_write_iter()
989 err = ceph_get_caps(ci, CEPH_CAP_FILE_WR, want, pos + count, in ceph_write_iter()
1036 spin_lock(&ci->i_ceph_lock); in ceph_write_iter()
1037 ci->i_inline_version = CEPH_INLINE_NONE; in ceph_write_iter()
1038 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR); in ceph_write_iter()
1039 spin_unlock(&ci->i_ceph_lock); in ceph_write_iter()
1047 ceph_put_cap_refs(ci, got); in ceph_write_iter()
1163 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_zero_partial_object() local
1177 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_zero_partial_object()
1207 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_zero_objects() local
1208 s32 stripe_unit = ceph_file_layout_su(ci->i_layout); in ceph_zero_objects()
1209 s32 stripe_count = ceph_file_layout_stripe_count(ci->i_layout); in ceph_zero_objects()
1210 s32 object_size = ceph_file_layout_object_size(ci->i_layout); in ceph_zero_objects()
1255 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_fallocate() local
1283 if (ci->i_inline_version != CEPH_INLINE_NONE) { in ceph_fallocate()
1298 ret = ceph_get_caps(ci, CEPH_CAP_FILE_WR, want, endoff, &got, NULL); in ceph_fallocate()
1314 spin_lock(&ci->i_ceph_lock); in ceph_fallocate()
1315 ci->i_inline_version = CEPH_INLINE_NONE; in ceph_fallocate()
1316 dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_FILE_WR); in ceph_fallocate()
1317 spin_unlock(&ci->i_ceph_lock); in ceph_fallocate()
1322 ceph_put_cap_refs(ci, got); in ceph_fallocate()