/drivers/staging/lustre/lustre/llite/ |
D | llite_internal.h | 152 struct inode lli_vfs_inode; 280 int ll_xattr_cache_destroy(struct inode *inode); 282 int ll_xattr_cache_get(struct inode *inode, const char *name, 292 void ll_inode_size_lock(struct inode *inode); 293 void ll_inode_size_unlock(struct inode *inode); 297 static inline struct ll_inode_info *ll_i2info(struct inode *inode) in ll_i2info() argument 299 return container_of(inode, struct ll_inode_info, lli_vfs_inode); in ll_i2info() 638 static inline struct inode *ll_info2i(struct ll_inode_info *lli) in ll_info2i() 643 __u32 ll_i2suppgid(struct inode *i); 644 void ll_i2gids(__u32 *suppgids, struct inode *i1, struct inode *i2); [all …]
|
D | file.c | 52 ll_put_grouplock(struct inode *inode, struct file *file, unsigned long arg); 54 static int ll_lease_close(struct obd_client_handle *och, struct inode *inode, 58 ll_iocontrol_call(struct inode *inode, struct file *file, 78 void ll_pack_inode2opdata(struct inode *inode, struct md_op_data *op_data, in ll_pack_inode2opdata() argument 81 op_data->op_fid1 = ll_i2info(inode)->lli_fid; in ll_pack_inode2opdata() 82 op_data->op_attr.ia_mode = inode->i_mode; in ll_pack_inode2opdata() 83 op_data->op_attr.ia_atime = inode->i_atime; in ll_pack_inode2opdata() 84 op_data->op_attr.ia_mtime = inode->i_mtime; in ll_pack_inode2opdata() 85 op_data->op_attr.ia_ctime = inode->i_ctime; in ll_pack_inode2opdata() 86 op_data->op_attr.ia_size = i_size_read(inode); in ll_pack_inode2opdata() [all …]
|
D | namei.c | 49 static int ll_create_it(struct inode *dir, struct dentry *dentry, 53 static int ll_test_inode(struct inode *inode, void *opaque) in ll_test_inode() argument 55 struct ll_inode_info *lli = ll_i2info(inode); in ll_test_inode() 69 static int ll_set_inode(struct inode *inode, void *opaque) in ll_set_inode() argument 71 struct ll_inode_info *lli = ll_i2info(inode); in ll_set_inode() 87 inode->i_mode = (inode->i_mode & ~S_IFMT) | (body->mbo_mode & S_IFMT); in ll_set_inode() 88 if (unlikely(inode->i_mode == 0)) { in ll_set_inode() 102 struct inode *ll_iget(struct super_block *sb, ino_t hash, in ll_iget() 105 struct inode *inode; in ll_iget() local 109 inode = iget5_locked(sb, hash, ll_test_inode, ll_set_inode, md); in ll_iget() [all …]
|
D | llite_close.c | 75 void ll_queue_done_writing(struct inode *inode, unsigned long flags) in ll_queue_done_writing() argument 77 struct ll_inode_info *lli = ll_i2info(inode); in ll_queue_done_writing() 78 struct vvp_object *club = cl2vvp(ll_i2info(inode)->lli_clob); in ll_queue_done_writing() 85 struct ll_close_queue *lcq = ll_i2sbi(inode)->ll_lcq; in ll_queue_done_writing() 89 ll_get_fsname(inode->i_sb, NULL, 0), in ll_queue_done_writing() 90 PFID(ll_inode2fid(inode)), lli->lli_flags); in ll_queue_done_writing() 96 PFID(ll_inode2fid(inode))); in ll_queue_done_writing() 115 void ll_done_writing_attr(struct inode *inode, struct md_op_data *op_data) in ll_done_writing_attr() argument 117 struct ll_inode_info *lli = ll_i2info(inode); in ll_done_writing_attr() 123 ll_get_fsname(inode->i_sb, NULL, 0), in ll_done_writing_attr() [all …]
|
D | xattr.c | 95 struct dentry *dentry, struct inode *inode, in ll_xattr_set_common() argument 100 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_xattr_set_common() 107 ll_stats_ops_tally(ll_i2sbi(inode), LPROC_LL_REMOVEXATTR, 1); in ll_xattr_set_common() 110 ll_stats_ops_tally(ll_i2sbi(inode), LPROC_LL_SETXATTR, 1); in ll_xattr_set_common() 120 !inode_owner_or_capable(inode)) in ll_xattr_set_common() 139 rc = md_setxattr(sbi->ll_md_exp, ll_inode2fid(inode), in ll_xattr_set_common() 141 ll_i2suppgid(inode), &req); in ll_xattr_set_common() 155 struct dentry *dentry, struct inode *inode, in ll_xattr_set() argument 159 LASSERT(inode); in ll_xattr_set() 163 PFID(ll_inode2fid(inode)), inode, name); in ll_xattr_set() [all …]
|
D | vvp_object.c | 54 struct inode *inode = vvp_object_inode(obj); in vvp_object_invariant() local 55 struct ll_inode_info *lli = ll_i2info(inode); in vvp_object_invariant() 57 return (S_ISREG(inode->i_mode) || inode->i_mode == 0) && in vvp_object_invariant() 65 struct inode *inode = obj->vob_inode; in vvp_object_print() local 71 atomic_read(&obj->vob_mmap_cnt), inode); in vvp_object_print() 72 if (inode) { in vvp_object_print() 73 lli = ll_i2info(inode); in vvp_object_print() 75 inode->i_ino, inode->i_generation, inode->i_mode, in vvp_object_print() 76 inode->i_nlink, atomic_read(&inode->i_count), in vvp_object_print() 85 struct inode *inode = vvp_object_inode(obj); in vvp_attr_get() local [all …]
|
D | glimpse.c | 64 blkcnt_t dirty_cnt(struct inode *inode) in dirty_cnt() argument 67 struct vvp_object *vob = cl_inode2vvp(inode); in dirty_cnt() 70 if (inode->i_mapping) in dirty_cnt() 71 cnt += radix_tree_gang_lookup_tag(&inode->i_mapping->page_tree, in dirty_cnt() 81 struct inode *inode, struct cl_object *clob, int agl) in cl_glimpse_lock() argument 83 struct ll_inode_info *lli = ll_i2info(inode); in cl_glimpse_lock() 127 ll_merge_attr(env, inode); in cl_glimpse_lock() 128 if (i_size_read(inode) > 0 && in cl_glimpse_lock() 129 inode->i_blocks == 0) { in cl_glimpse_lock() 136 inode->i_blocks = dirty_cnt(inode); in cl_glimpse_lock() [all …]
|
D | llite_lib.c | 150 struct inode *root = NULL; in client_common_fill_super() 1035 struct inode *ll_inode_from_resource_lock(struct ldlm_lock *lock) in ll_inode_from_resource_lock() 1037 struct inode *inode = NULL; in ll_inode_from_resource_lock() local 1046 inode = igrab(lock->l_resource->lr_lvb_inode); in ll_inode_from_resource_lock() 1048 inode = lock->l_resource->lr_lvb_inode; in ll_inode_from_resource_lock() 1049 LDLM_DEBUG_LIMIT(inode->i_state & I_FREEING ? D_INFO : in ll_inode_from_resource_lock() 1053 inode = NULL; in ll_inode_from_resource_lock() 1057 return inode; in ll_inode_from_resource_lock() 1060 static void ll_dir_clear_lsm_md(struct inode *inode) in ll_dir_clear_lsm_md() argument 1062 struct ll_inode_info *lli = ll_i2info(inode); in ll_dir_clear_lsm_md() [all …]
|
D | dir.c | 136 struct page *ll_get_dir_page(struct inode *dir, struct md_op_data *op_data, in ll_get_dir_page() 151 void ll_release_page(struct inode *inode, struct page *page, bool remove) in ll_release_page() argument 159 if (inode && S_ISDIR(inode->i_mode) && in ll_release_page() 160 ll_i2info(inode)->lli_lsm_md) { in ll_release_page() 196 int ll_dir_read(struct inode *inode, __u64 *ppos, struct md_op_data *op_data, in ll_dir_read() argument 199 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_dir_read() 207 page = ll_get_dir_page(inode, op_data, pos); in ll_dir_read() 264 ll_release_page(inode, page, false); in ll_dir_read() 275 ll_release_page(inode, page, false); in ll_dir_read() 281 ll_release_page(inode, page, in ll_dir_read() [all …]
|
D | vvp_io.c | 63 struct inode *inode) in can_populate_pages() argument 65 struct ll_inode_info *lli = ll_i2info(inode); in can_populate_pages() 92 struct inode *inode = vvp_object_inode(obj); in vvp_object_size_lock() local 94 ll_inode_size_lock(inode); in vvp_object_size_lock() 100 struct inode *inode = vvp_object_inode(obj); in vvp_object_size_unlock() local 103 ll_inode_size_unlock(inode); in vvp_object_size_unlock() 122 struct inode *inode = vvp_object_inode(obj); in vvp_prep_size() local 157 result = cl_glimpse_lock(env, io, inode, obj, 0); in vvp_prep_size() 165 loff_t size = i_size_read(inode); in vvp_prep_size() 185 if (i_size_read(inode) < kms) { in vvp_prep_size() [all …]
|
D | lcommon_cl.c | 83 int cl_setattr_ost(struct inode *inode, const struct iattr *attr) in cl_setattr_ost() argument 95 io->ci_obj = ll_i2info(inode)->lli_clob; in cl_setattr_ost() 102 io->u.ci_setattr.sa_parent_fid = ll_inode2fid(inode); in cl_setattr_ost() 141 int cl_file_inode_init(struct inode *inode, struct lustre_md *md) in cl_file_inode_init() argument 149 .coc_inode = inode, in cl_file_inode_init() 158 LASSERT(S_ISREG(inode->i_mode)); in cl_file_inode_init() 164 site = ll_i2sbi(inode)->ll_site; in cl_file_inode_init() 165 lli = ll_i2info(inode); in cl_file_inode_init() 175 LASSERT(inode->i_state & I_NEW); in cl_file_inode_init() 186 lu_object_ref_add(&clob->co_lu, "inode", inode); in cl_file_inode_init() [all …]
|
D | llite_nfs.c | 75 struct inode *search_inode_for_lustre(struct super_block *sb, in search_inode_for_lustre() 80 struct inode *inode = NULL; in search_inode_for_lustre() local 89 inode = ilookup5(sb, hash, ll_test_inode_by_fid, (void *)fid); in search_inode_for_lustre() 90 if (inode) in search_inode_for_lustre() 91 return inode; in search_inode_for_lustre() 116 rc = ll_prep_inode(&inode, req, sb, NULL); in search_inode_for_lustre() 121 return inode; in search_inode_for_lustre() 132 struct inode *inode; in ll_iget_for_nfs() local 140 inode = search_inode_for_lustre(sb, fid); in ll_iget_for_nfs() 141 if (IS_ERR(inode)) in ll_iget_for_nfs() [all …]
|
D | symlink.c | 40 static int ll_readlink_internal(struct inode *inode, in ll_readlink_internal() argument 43 struct ll_inode_info *lli = ll_i2info(inode); in ll_readlink_internal() 44 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_readlink_internal() 45 int rc, symlen = i_size_read(inode) + 1; in ll_readlink_internal() 65 op_data = ll_prep_md_op_data(NULL, inode, NULL, NULL, 0, symlen, in ll_readlink_internal() 76 ll_get_fsname(inode->i_sb, NULL, 0), in ll_readlink_internal() 77 PFID(ll_inode2fid(inode)), rc); in ll_readlink_internal() 91 ll_get_fsname(inode->i_sb, NULL, 0), in ll_readlink_internal() 92 PFID(ll_inode2fid(inode)), body->mbo_eadatasize - 1, in ll_readlink_internal() 103 inode->i_ino, symlen - 1); in ll_readlink_internal() [all …]
|
D | dcache.c | 198 void ll_invalidate_aliases(struct inode *inode) in ll_invalidate_aliases() argument 203 PFID(ll_inode2fid(inode)), inode); in ll_invalidate_aliases() 205 spin_lock(&inode->i_lock); in ll_invalidate_aliases() 206 hlist_for_each_entry(dentry, &inode->i_dentry, d_u.d_alias) { in ll_invalidate_aliases() 213 spin_unlock(&inode->i_lock); in ll_invalidate_aliases() 218 struct inode *inode) in ll_revalidate_it_finish() argument 228 rc = ll_prep_inode(&inode, request, NULL, it); in ll_revalidate_it_finish() 233 void ll_lookup_finish_locks(struct lookup_intent *it, struct inode *inode) in ll_lookup_finish_locks() argument 235 if (it->it_lock_mode && inode) { in ll_lookup_finish_locks() 236 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_lookup_finish_locks() [all …]
|
D | rw.c | 140 void ll_ra_stats_inc(struct inode *inode, enum ra_stat which) in ll_ra_stats_inc() argument 142 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_ra_stats_inc() 233 struct inode *inode = vvp_object_inode(clob); in ll_read_ahead_page() local 240 vmpage = grab_cache_page_nowait(inode->i_mapping, index); in ll_read_ahead_page() 243 if (vmpage->mapping == inode->i_mapping) { in ll_read_ahead_page() 269 ll_ra_stats_inc(inode, which); in ll_read_ahead_page() 292 #define RAS_INCREASE_STEP(inode) (ONE_MB_BRW_SIZE >> PAGE_SHIFT) argument 441 struct inode *inode; in ll_readahead() local 448 inode = vvp_object_inode(clob); in ll_readahead() 460 ll_ra_stats_inc(inode, RA_STAT_ZERO_LEN); in ll_readahead() [all …]
|
D | xattr_cache.c | 241 int ll_xattr_cache_destroy(struct inode *inode) in ll_xattr_cache_destroy() argument 243 struct ll_inode_info *lli = ll_i2info(inode); in ll_xattr_cache_destroy() 264 static int ll_xattr_find_get_lock(struct inode *inode, in ll_xattr_find_get_lock() argument 271 struct ll_inode_info *lli = ll_i2info(inode); in ll_xattr_find_get_lock() 278 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_xattr_find_get_lock() 288 mode = ll_take_md_lock(inode, MDS_INODELOCK_XATTR, &lockh, 0, in ll_xattr_find_get_lock() 299 op_data = ll_prep_md_op_data(NULL, inode, NULL, NULL, 0, 0, in ll_xattr_find_get_lock() 314 rc, PFID(ll_inode2fid(inode))); in ll_xattr_find_get_lock() 338 static int ll_xattr_cache_refill(struct inode *inode, struct lookup_intent *oit) in ll_xattr_cache_refill() argument 340 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_xattr_cache_refill() [all …]
|
D | llite_mmap.c | 97 struct inode *inode = file_inode(file); in ll_fault_io_init() local 122 io->ci_obj = ll_i2info(inode)->lli_clob; in ll_fault_io_init() 175 struct inode *inode; in ll_page_mkwrite0() local 197 inode = vvp_object_inode(io->ci_obj); in ll_page_mkwrite0() 198 lli = ll_i2info(inode); in ll_page_mkwrite0() 205 struct inode *inode = file_inode(vma->vm_file); in ll_page_mkwrite0() local 206 struct ll_inode_info *lli = ll_i2info(inode); in ll_page_mkwrite0() 425 struct inode *inode = file_inode(vma->vm_file); in ll_vm_open() local 426 struct vvp_object *vob = cl_inode2vvp(inode); in ll_vm_open() 437 struct inode *inode = file_inode(vma->vm_file); in ll_vm_close() local [all …]
|
/drivers/oprofile/ |
D | oprofilefs.c | 26 static struct inode *oprofilefs_get_inode(struct super_block *sb, int mode) in oprofilefs_get_inode() 28 struct inode *inode = new_inode(sb); in oprofilefs_get_inode() local 30 if (inode) { in oprofilefs_get_inode() 31 inode->i_ino = get_next_ino(); in oprofilefs_get_inode() 32 inode->i_mode = mode; in oprofilefs_get_inode() 33 inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); in oprofilefs_get_inode() 35 return inode; in oprofilefs_get_inode() 139 struct inode *inode; in __oprofilefs_create_file() local 147 inode = oprofilefs_get_inode(root->d_sb, S_IFREG | perm); in __oprofilefs_create_file() 148 if (!inode) { in __oprofilefs_create_file() [all …]
|
/drivers/misc/ibmasm/ |
D | ibmasmfs.c | 89 static struct inode *ibmasmfs_make_inode(struct super_block *sb, int mode); 117 struct inode *root; in ibmasmfs_fill_super() 140 static struct inode *ibmasmfs_make_inode(struct super_block *sb, int mode) in ibmasmfs_make_inode() 142 struct inode *ret = new_inode(sb); in ibmasmfs_make_inode() 159 struct inode *inode; in ibmasmfs_create_file() local 165 inode = ibmasmfs_make_inode(parent->d_sb, S_IFREG | mode); in ibmasmfs_create_file() 166 if (!inode) { in ibmasmfs_create_file() 171 inode->i_fop = fops; in ibmasmfs_create_file() 172 inode->i_private = data; in ibmasmfs_create_file() 174 d_add(dentry, inode); in ibmasmfs_create_file() [all …]
|
/drivers/dax/ |
D | dax.c | 70 struct inode *inode; member 79 static struct inode *dax_alloc_inode(struct super_block *sb) in dax_alloc_inode() 86 struct inode *inode = container_of(head, struct inode, i_rcu); in dax_i_callback() local 88 kmem_cache_free(dax_cache, inode); in dax_i_callback() 91 static void dax_destroy_inode(struct inode *inode) in dax_destroy_inode() argument 93 call_rcu(&inode->i_rcu, dax_i_callback); in dax_destroy_inode() 115 static int dax_test(struct inode *inode, void *data) in dax_test() argument 117 return inode->i_cdev == data; in dax_test() 120 static int dax_set(struct inode *inode, void *data) in dax_set() argument 122 inode->i_cdev = data; in dax_set() [all …]
|
/drivers/misc/mic/host/ |
D | mic_debugfs.c | 57 static int mic_smpt_debug_open(struct inode *inode, struct file *file) in mic_smpt_debug_open() argument 59 return single_open(file, mic_smpt_show, inode->i_private); in mic_smpt_debug_open() 62 static int mic_smpt_debug_release(struct inode *inode, struct file *file) in mic_smpt_debug_release() argument 64 return single_release(inode, file); in mic_smpt_debug_release() 84 static int mic_post_code_debug_open(struct inode *inode, struct file *file) in mic_post_code_debug_open() argument 86 return single_open(file, mic_post_code_show, inode->i_private); in mic_post_code_debug_open() 89 static int mic_post_code_debug_release(struct inode *inode, struct file *file) in mic_post_code_debug_release() argument 91 return single_release(inode, file); in mic_post_code_debug_release() 146 static int mic_msi_irq_info_debug_open(struct inode *inode, struct file *file) in mic_msi_irq_info_debug_open() argument 148 return single_open(file, mic_msi_irq_info_show, inode->i_private); in mic_msi_irq_info_debug_open() [all …]
|
/drivers/mfd/ |
D | ab8500-debugfs.c | 1333 static int ab8500_registers_open(struct inode *inode, struct file *file) in ab8500_registers_open() argument 1335 return single_open(file, ab8500_print_bank_registers, inode->i_private); in ab8500_registers_open() 1377 static int ab8500_all_banks_open(struct inode *inode, struct file *file) in ab8500_all_banks_open() argument 1382 err = single_open(file, ab8500_print_all_banks, inode->i_private); in ab8500_all_banks_open() 1389 single_release(inode, file); in ab8500_all_banks_open() 1410 static int ab8500_bank_open(struct inode *inode, struct file *file) in ab8500_bank_open() argument 1412 return single_open(file, ab8500_bank_print, inode->i_private); in ab8500_bank_open() 1443 static int ab8500_address_open(struct inode *inode, struct file *file) in ab8500_address_open() argument 1445 return single_open(file, ab8500_address_print, inode->i_private); in ab8500_address_open() 1487 static int ab8500_val_open(struct inode *inode, struct file *file) in ab8500_val_open() argument [all …]
|
/drivers/ide/ |
D | ide-proc.c | 59 static int ide_imodel_proc_open(struct inode *inode, struct file *file) in ide_imodel_proc_open() argument 61 return single_open(file, ide_imodel_proc_show, PDE_DATA(inode)); in ide_imodel_proc_open() 83 static int ide_mate_proc_open(struct inode *inode, struct file *file) in ide_mate_proc_open() argument 85 return single_open(file, ide_mate_proc_show, PDE_DATA(inode)); in ide_mate_proc_open() 104 static int ide_channel_proc_open(struct inode *inode, struct file *file) in ide_channel_proc_open() argument 106 return single_open(file, ide_channel_proc_show, PDE_DATA(inode)); in ide_channel_proc_open() 144 static int ide_identify_proc_open(struct inode *inode, struct file *file) in ide_identify_proc_open() argument 146 return single_open(file, ide_identify_proc_show, PDE_DATA(inode)); in ide_identify_proc_open() 326 static int ide_settings_proc_open(struct inode *inode, struct file *file) in ide_settings_proc_open() argument 328 return single_open(file, ide_settings_proc_show, PDE_DATA(inode)); in ide_settings_proc_open() [all …]
|
/drivers/misc/mic/scif/ |
D | scif_debugfs.c | 47 static int scif_dev_test_open(struct inode *inode, struct file *file) in scif_dev_test_open() argument 49 return single_open(file, scif_dev_test, inode->i_private); in scif_dev_test_open() 52 static int scif_dev_test_release(struct inode *inode, struct file *file) in scif_dev_test_release() argument 54 return single_release(inode, file); in scif_dev_test_release() 126 static int scif_rma_test_open(struct inode *inode, struct file *file) in scif_rma_test_open() argument 128 return single_open(file, scif_rma_test, inode->i_private); in scif_rma_test_open() 131 static int scif_rma_test_release(struct inode *inode, struct file *file) in scif_rma_test_release() argument 133 return single_release(inode, file); in scif_rma_test_release()
|
/drivers/usb/chipidea/ |
D | debug.c | 48 static int ci_device_open(struct inode *inode, struct file *file) in ci_device_open() argument 50 return single_open(file, ci_device_show, inode->i_private); in ci_device_open() 115 static int ci_port_test_open(struct inode *inode, struct file *file) in ci_port_test_open() argument 117 return single_open(file, ci_port_test_show, inode->i_private); in ci_port_test_open() 159 static int ci_qheads_open(struct inode *inode, struct file *file) in ci_qheads_open() argument 161 return single_open(file, ci_qheads_show, inode->i_private); in ci_qheads_open() 207 static int ci_requests_open(struct inode *inode, struct file *file) in ci_requests_open() argument 209 return single_open(file, ci_requests_show, inode->i_private); in ci_requests_open() 281 static int ci_otg_open(struct inode *inode, struct file *file) in ci_otg_open() argument 283 return single_open(file, ci_otg_show, inode->i_private); in ci_otg_open() [all …]
|