/fs/ocfs2/ |
D | uptodate.c | 72 u64 ocfs2_metadata_cache_owner(struct ocfs2_caching_info *ci) in ocfs2_metadata_cache_owner() argument 74 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_owner() 76 return ci->ci_ops->co_owner(ci); in ocfs2_metadata_cache_owner() 79 struct super_block *ocfs2_metadata_cache_get_super(struct ocfs2_caching_info *ci) in ocfs2_metadata_cache_get_super() argument 81 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_get_super() 83 return ci->ci_ops->co_get_super(ci); in ocfs2_metadata_cache_get_super() 86 static void ocfs2_metadata_cache_lock(struct ocfs2_caching_info *ci) in ocfs2_metadata_cache_lock() argument 88 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_lock() 90 ci->ci_ops->co_cache_lock(ci); in ocfs2_metadata_cache_lock() 93 static void ocfs2_metadata_cache_unlock(struct ocfs2_caching_info *ci) in ocfs2_metadata_cache_unlock() argument [all …]
|
D | uptodate.h | 39 u64 (*co_owner)(struct ocfs2_caching_info *ci); 42 struct super_block *(*co_get_super)(struct ocfs2_caching_info *ci); 47 void (*co_cache_lock)(struct ocfs2_caching_info *ci); 48 void (*co_cache_unlock)(struct ocfs2_caching_info *ci); 54 void (*co_io_lock)(struct ocfs2_caching_info *ci); 55 void (*co_io_unlock)(struct ocfs2_caching_info *ci); 61 void ocfs2_metadata_cache_init(struct ocfs2_caching_info *ci, 63 void ocfs2_metadata_cache_purge(struct ocfs2_caching_info *ci); 64 void ocfs2_metadata_cache_exit(struct ocfs2_caching_info *ci); 66 u64 ocfs2_metadata_cache_owner(struct ocfs2_caching_info *ci); [all …]
|
D | journal.h | 95 struct ocfs2_caching_info *ci) in ocfs2_set_ci_lock_trans() argument 98 ci->ci_last_trans = journal->j_trans_id; in ocfs2_set_ci_lock_trans() 107 static inline int ocfs2_ci_fully_checkpointed(struct ocfs2_caching_info *ci) in ocfs2_ci_fully_checkpointed() argument 111 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_fully_checkpointed() 114 ret = time_after(journal->j_trans_id, ci->ci_last_trans); in ocfs2_ci_fully_checkpointed() 123 static inline int ocfs2_ci_is_new(struct ocfs2_caching_info *ci) in ocfs2_ci_is_new() argument 127 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_is_new() 130 ret = !(time_after(journal->j_trans_id, ci->ci_created_trans)); in ocfs2_ci_is_new() 132 ci->ci_created_trans = 0; in ocfs2_ci_is_new() 150 struct ocfs2_caching_info *ci) in ocfs2_ci_set_new() argument [all …]
|
D | buffer_head_io.c | 54 struct ocfs2_caching_info *ci) in ocfs2_write_block() argument 58 trace_ocfs2_write_block((unsigned long long)bh->b_blocknr, ci); in ocfs2_write_block() 72 ocfs2_metadata_cache_io_lock(ci); in ocfs2_write_block() 87 ocfs2_set_buffer_uptodate(ci, bh); in ocfs2_write_block() 97 ocfs2_metadata_cache_io_unlock(ci); in ocfs2_write_block() 177 int ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr, in ocfs2_read_blocks() argument 185 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); in ocfs2_read_blocks() 187 trace_ocfs2_read_blocks_begin(ci, (unsigned long long)block, nr, flags); in ocfs2_read_blocks() 189 BUG_ON(!ci); in ocfs2_read_blocks() 211 ocfs2_metadata_cache_io_lock(ci); in ocfs2_read_blocks() [all …]
|
D | refcounttree.c | 75 cache_info_to_refcount(struct ocfs2_caching_info *ci) in cache_info_to_refcount() argument 77 return container_of(ci, struct ocfs2_refcount_tree, rf_ci); in cache_info_to_refcount() 133 static int ocfs2_read_refcount_block(struct ocfs2_caching_info *ci, in ocfs2_read_refcount_block() argument 140 rc = ocfs2_read_block(ci, rb_blkno, &tmp, in ocfs2_read_refcount_block() 150 static u64 ocfs2_refcount_cache_owner(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_owner() argument 152 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_owner() 158 ocfs2_refcount_cache_get_super(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_get_super() argument 160 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_get_super() 165 static void ocfs2_refcount_cache_lock(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_lock() argument 167 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_lock() [all …]
|
D | alloc.h | 71 struct ocfs2_caching_info *ci, 74 struct ocfs2_caching_info *ci, 78 struct ocfs2_caching_info *ci, 81 struct ocfs2_caching_info *ci, 84 struct ocfs2_caching_info *ci, 92 int ocfs2_read_extent_block(struct ocfs2_caching_info *ci, u64 eb_blkno, 237 int ocfs2_find_leaf(struct ocfs2_caching_info *ci, 305 int ocfs2_find_path(struct ocfs2_caching_info *ci, 311 struct ocfs2_caching_info *ci, 314 int ocfs2_journal_access_path(struct ocfs2_caching_info *ci,
|
D | buffer_head_io.h | 36 struct ocfs2_caching_info *ci); 47 int ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr, 58 static inline int ocfs2_read_block(struct ocfs2_caching_info *ci, u64 off, in ocfs2_read_block() argument 71 status = ocfs2_read_blocks(ci, off, 1, bh, 0, validate); in ocfs2_read_block()
|
D | journal.c | 609 struct ocfs2_caching_info *ci, in __ocfs2_journal_access() argument 616 OCFS2_SB(ocfs2_metadata_cache_get_super(ci)); in __ocfs2_journal_access() 618 BUG_ON(!ci || !ci->ci_ops); in __ocfs2_journal_access() 623 (unsigned long long)ocfs2_metadata_cache_owner(ci), in __ocfs2_journal_access() 640 ocfs2_set_ci_lock_trans(osb->journal, ci); in __ocfs2_journal_access() 642 ocfs2_metadata_cache_io_lock(ci); in __ocfs2_journal_access() 659 ocfs2_metadata_cache_io_unlock(ci); in __ocfs2_journal_access() 668 int ocfs2_journal_access_di(handle_t *handle, struct ocfs2_caching_info *ci, in ocfs2_journal_access_di() argument 671 return __ocfs2_journal_access(handle, ci, bh, &di_triggers, type); in ocfs2_journal_access_di() 674 int ocfs2_journal_access_eb(handle_t *handle, struct ocfs2_caching_info *ci, in ocfs2_journal_access_eb() argument [all …]
|
D | inode.c | 1396 static u64 ocfs2_inode_cache_owner(struct ocfs2_caching_info *ci) in ocfs2_inode_cache_owner() argument 1398 struct ocfs2_inode_info *oi = cache_info_to_inode(ci); in ocfs2_inode_cache_owner() 1403 static struct super_block *ocfs2_inode_cache_get_super(struct ocfs2_caching_info *ci) in ocfs2_inode_cache_get_super() argument 1405 struct ocfs2_inode_info *oi = cache_info_to_inode(ci); in ocfs2_inode_cache_get_super() 1410 static void ocfs2_inode_cache_lock(struct ocfs2_caching_info *ci) in ocfs2_inode_cache_lock() argument 1412 struct ocfs2_inode_info *oi = cache_info_to_inode(ci); in ocfs2_inode_cache_lock() 1417 static void ocfs2_inode_cache_unlock(struct ocfs2_caching_info *ci) in ocfs2_inode_cache_unlock() argument 1419 struct ocfs2_inode_info *oi = cache_info_to_inode(ci); in ocfs2_inode_cache_unlock() 1424 static void ocfs2_inode_cache_io_lock(struct ocfs2_caching_info *ci) in ocfs2_inode_cache_io_lock() argument 1426 struct ocfs2_inode_info *oi = cache_info_to_inode(ci); in ocfs2_inode_cache_io_lock() [all …]
|
/fs/ceph/ |
D | caps.c | 316 static struct ceph_cap *__get_cap_for_mds(struct ceph_inode_info *ci, int mds) in __get_cap_for_mds() argument 319 struct rb_node *n = ci->i_caps.rb_node; in __get_cap_for_mds() 333 struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, int mds) in ceph_get_cap_for_mds() argument 337 spin_lock(&ci->i_ceph_lock); in ceph_get_cap_for_mds() 338 cap = __get_cap_for_mds(ci, mds); in ceph_get_cap_for_mds() 339 spin_unlock(&ci->i_ceph_lock); in ceph_get_cap_for_mds() 346 static int __ceph_get_cap_mds(struct ceph_inode_info *ci) in __ceph_get_cap_mds() argument 353 for (p = rb_first(&ci->i_caps); p; p = rb_next(p)) { in __ceph_get_cap_mds() 366 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_get_cap_mds() local 368 spin_lock(&ci->i_ceph_lock); in ceph_get_cap_mds() [all …]
|
D | xattr.c | 30 size_t (*getxattr_cb)(struct ceph_inode_info *ci, char *val, 33 bool (*exists_cb)(struct ceph_inode_info *ci); 38 static bool ceph_vxattrcb_layout_exists(struct ceph_inode_info *ci) in ceph_vxattrcb_layout_exists() argument 41 char *p = (char *)&ci->i_layout; in ceph_vxattrcb_layout_exists() 43 for (s = 0; s < sizeof(ci->i_layout); s++, p++) in ceph_vxattrcb_layout_exists() 49 static size_t ceph_vxattrcb_layout(struct ceph_inode_info *ci, char *val, in ceph_vxattrcb_layout() argument 53 struct ceph_fs_client *fsc = ceph_sb_to_client(ci->vfs_inode.i_sb); in ceph_vxattrcb_layout() 55 s64 pool = ceph_file_layout_pg_pool(ci->i_layout); in ceph_vxattrcb_layout() 58 dout("ceph_vxattrcb_layout %p\n", &ci->vfs_inode); in ceph_vxattrcb_layout() 64 (unsigned long long)ceph_file_layout_su(ci->i_layout), in ceph_vxattrcb_layout() [all …]
|
D | inode.c | 74 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_get_snapdir() local 84 ci->i_snap_caps = CEPH_CAP_PIN; /* so we can open */ in ceph_get_snapdir() 85 ci->i_rbytes = 0; in ceph_get_snapdir() 111 static struct ceph_inode_frag *__get_or_create_frag(struct ceph_inode_info *ci, in __get_or_create_frag() argument 119 p = &ci->i_fragtree.rb_node; in __get_or_create_frag() 135 "frag %x\n", &ci->vfs_inode, in __get_or_create_frag() 136 ceph_vinop(&ci->vfs_inode), f); in __get_or_create_frag() 145 rb_insert_color(&frag->node, &ci->i_fragtree); in __get_or_create_frag() 148 ceph_vinop(&ci->vfs_inode), f); in __get_or_create_frag() 155 struct ceph_inode_frag *__ceph_find_frag(struct ceph_inode_info *ci, u32 f) in __ceph_find_frag() argument [all …]
|
D | super.h | 107 struct ceph_inode_info *ci; member 133 struct ceph_inode_info *ci; member 407 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_ino_compare() local 408 return ci->i_vino.ino == pvino->ino && in ceph_ino_compare() 409 ci->i_vino.snap == pvino->snap; in ceph_ino_compare() 427 static inline void __ceph_dir_set_complete(struct ceph_inode_info *ci, in __ceph_dir_set_complete() argument 430 atomic_set(&ci->i_complete_count, release_count); in __ceph_dir_set_complete() 433 static inline void __ceph_dir_clear_complete(struct ceph_inode_info *ci) in __ceph_dir_clear_complete() argument 435 atomic_inc(&ci->i_release_count); in __ceph_dir_clear_complete() 438 static inline bool __ceph_dir_is_complete(struct ceph_inode_info *ci) in __ceph_dir_is_complete() argument [all …]
|
D | snap.c | 438 void ceph_queue_cap_snap(struct ceph_inode_info *ci) in ceph_queue_cap_snap() argument 440 struct inode *inode = &ci->vfs_inode; in ceph_queue_cap_snap() 450 spin_lock(&ci->i_ceph_lock); in ceph_queue_cap_snap() 451 used = __ceph_caps_used(ci); in ceph_queue_cap_snap() 452 dirty = __ceph_caps_dirty(ci); in ceph_queue_cap_snap() 462 if (__ceph_have_pending_cap_snap(ci)) { in ceph_queue_cap_snap() 471 struct ceph_snap_context *snapc = ci->i_head_snapc; in ceph_queue_cap_snap() 478 snapc = ci->i_snap_realm->cached_context; in ceph_queue_cap_snap() 485 capsnap->ci = ci; in ceph_queue_cap_snap() 490 capsnap->issued = __ceph_caps_issued(ci, NULL); in ceph_queue_cap_snap() [all …]
|
D | ioctl.c | 19 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_get_layout() local 25 l.stripe_unit = ceph_file_layout_su(ci->i_layout); in ceph_ioctl_get_layout() 26 l.stripe_count = ceph_file_layout_stripe_count(ci->i_layout); in ceph_ioctl_get_layout() 27 l.object_size = ceph_file_layout_object_size(ci->i_layout); in ceph_ioctl_get_layout() 28 l.data_pool = le32_to_cpu(ci->i_layout.fl_pg_pool); in ceph_ioctl_get_layout() 71 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_set_layout() local 87 nl.stripe_count = ceph_file_layout_stripe_count(ci->i_layout); in ceph_ioctl_set_layout() 91 nl.stripe_unit = ceph_file_layout_su(ci->i_layout); in ceph_ioctl_set_layout() 95 nl.object_size = ceph_file_layout_object_size(ci->i_layout); in ceph_ioctl_set_layout() 99 nl.data_pool = ceph_file_layout_pg_pool(ci->i_layout); in ceph_ioctl_set_layout() [all …]
|
D | file.c | 118 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_open() local 148 spin_lock(&ci->i_ceph_lock); in ceph_open() 149 __ceph_get_fmode(ci, fmode); in ceph_open() 150 spin_unlock(&ci->i_ceph_lock); in ceph_open() 159 spin_lock(&ci->i_ceph_lock); in ceph_open() 160 if (__ceph_is_any_real_caps(ci) && in ceph_open() 161 (((fmode & CEPH_FILE_MODE_WR) == 0) || ci->i_auth_cap)) { in ceph_open() 162 int mds_wanted = __ceph_caps_mds_wanted(ci); in ceph_open() 163 int issued = __ceph_caps_issued(ci, NULL); in ceph_open() 168 __ceph_get_fmode(ci, fmode); in ceph_open() [all …]
|
D | addr.c | 72 struct ceph_inode_info *ci; in ceph_set_page_dirty() local 86 ci = ceph_inode(inode); in ceph_set_page_dirty() 92 snapc = ceph_get_snap_context(ci->i_snap_realm->cached_context); in ceph_set_page_dirty() 95 spin_lock(&ci->i_ceph_lock); in ceph_set_page_dirty() 96 if (ci->i_head_snapc == NULL) in ceph_set_page_dirty() 97 ci->i_head_snapc = ceph_get_snap_context(snapc); in ceph_set_page_dirty() 98 ++ci->i_wrbuffer_ref_head; in ceph_set_page_dirty() 99 if (ci->i_wrbuffer_ref == 0) in ceph_set_page_dirty() 101 ++ci->i_wrbuffer_ref; in ceph_set_page_dirty() 105 ci->i_wrbuffer_ref-1, ci->i_wrbuffer_ref_head-1, in ceph_set_page_dirty() [all …]
|
D | dir.c | 242 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_readdir() local 261 fi->dir_release_count = atomic_read(&ci->i_release_count); in ceph_readdir() 283 spin_lock(&ci->i_ceph_lock); in ceph_readdir() 287 __ceph_dir_is_complete(ci) && in ceph_readdir() 288 __ceph_caps_issued_mask(ci, CEPH_CAP_FILE_SHARED, 1)) { in ceph_readdir() 289 spin_unlock(&ci->i_ceph_lock); in ceph_readdir() 294 spin_unlock(&ci->i_ceph_lock); in ceph_readdir() 431 spin_lock(&ci->i_ceph_lock); in ceph_readdir() 432 if (atomic_read(&ci->i_release_count) == fi->dir_release_count) { in ceph_readdir() 434 __ceph_dir_set_complete(ci, fi->dir_release_count); in ceph_readdir() [all …]
|
D | mds_client.c | 614 struct ceph_inode_info *ci = ceph_inode(dir); in __register_request() local 617 spin_lock(&ci->i_unsafe_lock); in __register_request() 619 list_add_tail(&req->r_unsafe_dir_item, &ci->i_unsafe_dirops); in __register_request() 620 spin_unlock(&ci->i_unsafe_lock); in __register_request() 632 struct ceph_inode_info *ci = ceph_inode(req->r_unsafe_dir); in __unregister_request() local 634 spin_lock(&ci->i_unsafe_lock); in __unregister_request() 636 spin_unlock(&ci->i_unsafe_lock); in __unregister_request() 670 struct ceph_inode_info *ci; in __choose_mds() local 724 ci = ceph_inode(inode); in __choose_mds() 730 ceph_choose_frag(ci, hash, &frag, &found); in __choose_mds() [all …]
|
/fs/ubifs/ |
D | orphan.c | 844 struct check_info *ci = priv; in dbg_orphan_check() local 849 if (inum != ci->last_ino) { in dbg_orphan_check() 854 ci->last_ino = inum; in dbg_orphan_check() 855 ci->tot_inos += 1; in dbg_orphan_check() 856 err = ubifs_tnc_read_node(c, zbr, ci->node); in dbg_orphan_check() 861 if (ci->node->nlink == 0) in dbg_orphan_check() 863 if (!dbg_find_check_orphan(&ci->root, inum) && in dbg_orphan_check() 867 ci->missing += 1; in dbg_orphan_check() 870 ci->leaf_cnt += 1; in dbg_orphan_check() 874 static int dbg_read_orphans(struct check_info *ci, struct ubifs_scan_leb *sleb) in dbg_read_orphans() argument [all …]
|
/fs/ext4/ |
D | crypto_key.c | 87 void ext4_free_crypt_info(struct ext4_crypt_info *ci) in ext4_free_crypt_info() argument 89 if (!ci) in ext4_free_crypt_info() 92 if (ci->ci_keyring_key) in ext4_free_crypt_info() 93 key_put(ci->ci_keyring_key); in ext4_free_crypt_info() 94 crypto_free_ablkcipher(ci->ci_ctfm); in ext4_free_crypt_info() 95 kmem_cache_free(ext4_crypt_info_cachep, ci); in ext4_free_crypt_info() 99 struct ext4_crypt_info *ci) in ext4_free_encryption_info() argument 104 if (ci == NULL) in ext4_free_encryption_info() 105 ci = ACCESS_ONCE(ei->i_crypt_info); in ext4_free_encryption_info() 106 if (ci == NULL) in ext4_free_encryption_info() [all …]
|
D | crypto_fname.c | 71 struct ext4_crypt_info *ci = EXT4_I(inode)->i_crypt_info; in ext4_fname_encrypt() local 72 struct crypto_ablkcipher *tfm = ci->ci_ctfm; in ext4_fname_encrypt() 76 int padding = 4 << (ci->ci_flags & EXT4_POLICY_FLAGS_PAD_MASK); in ext4_fname_encrypt() 153 struct ext4_crypt_info *ci = EXT4_I(inode)->i_crypt_info; in ext4_fname_decrypt() local 154 struct crypto_ablkcipher *tfm = ci->ci_ctfm; in ext4_fname_decrypt() 267 struct ext4_crypt_info *ci = EXT4_I(inode)->i_crypt_info; in ext4_fname_encrypted_size() local 270 if (ci) in ext4_fname_encrypted_size() 271 padding = 4 << (ci->ci_flags & EXT4_POLICY_FLAGS_PAD_MASK); in ext4_fname_encrypted_size() 372 struct ext4_crypt_info *ci = EXT4_I(inode)->i_crypt_info; in ext4_fname_usr_to_disk() local 384 if (ci) { in ext4_fname_usr_to_disk() [all …]
|
D | crypto_policy.c | 179 struct ext4_crypt_info *ci; in ext4_inherit_context() local 185 ci = EXT4_I(parent)->i_crypt_info; in ext4_inherit_context() 186 if (ci == NULL) in ext4_inherit_context() 199 ctx.contents_encryption_mode = ci->ci_data_mode; in ext4_inherit_context() 200 ctx.filenames_encryption_mode = ci->ci_filename_mode; in ext4_inherit_context() 201 ctx.flags = ci->ci_flags; in ext4_inherit_context() 202 memcpy(ctx.master_key_descriptor, ci->ci_master_key, in ext4_inherit_context()
|
/fs/nilfs2/ |
D | cpfile.c | 379 struct nilfs_cpinfo *ci) in nilfs_cpfile_checkpoint_to_cpinfo() argument 381 ci->ci_flags = le32_to_cpu(cp->cp_flags); in nilfs_cpfile_checkpoint_to_cpinfo() 382 ci->ci_cno = le64_to_cpu(cp->cp_cno); in nilfs_cpfile_checkpoint_to_cpinfo() 383 ci->ci_create = le64_to_cpu(cp->cp_create); in nilfs_cpfile_checkpoint_to_cpinfo() 384 ci->ci_nblk_inc = le64_to_cpu(cp->cp_nblk_inc); in nilfs_cpfile_checkpoint_to_cpinfo() 385 ci->ci_inodes_count = le64_to_cpu(cp->cp_inodes_count); in nilfs_cpfile_checkpoint_to_cpinfo() 386 ci->ci_blocks_count = le64_to_cpu(cp->cp_blocks_count); in nilfs_cpfile_checkpoint_to_cpinfo() 387 ci->ci_next = le64_to_cpu(cp->cp_snapshot_list.ssl_next); in nilfs_cpfile_checkpoint_to_cpinfo() 394 struct nilfs_cpinfo *ci = buf; in nilfs_cpfile_do_get_cpinfo() local 420 ci); in nilfs_cpfile_do_get_cpinfo() [all …]
|
/fs/sdcardfs/ |
D | derived_perm.c | 27 struct sdcardfs_inode_info *ci = SDCARDFS_I(child); in inherit_derived_state() local 29 ci->data->perm = PERM_INHERIT; in inherit_derived_state() 30 ci->data->userid = pi->data->userid; in inherit_derived_state() 31 ci->data->d_uid = pi->data->d_uid; in inherit_derived_state() 32 ci->data->under_android = pi->data->under_android; in inherit_derived_state() 33 ci->data->under_cache = pi->data->under_cache; in inherit_derived_state() 34 ci->data->under_obb = pi->data->under_obb; in inherit_derived_state() 35 set_top(ci, pi->top_data); in inherit_derived_state()
|