Home
last modified time | relevance | path

Searched refs:sbi (Results 1 – 16 of 16) sorted by relevance

/drivers/staging/lustre/lustre/llite/
Dlproc_llite.c54 struct ll_sb_info *sbi = container_of(kobj, struct ll_sb_info, in blocksize_show() local
59 rc = ll_statfs_internal(sbi->ll_sb, &osfs, in blocksize_show()
72 struct ll_sb_info *sbi = container_of(kobj, struct ll_sb_info, in kbytestotal_show() local
77 rc = ll_statfs_internal(sbi->ll_sb, &osfs, in kbytestotal_show()
97 struct ll_sb_info *sbi = container_of(kobj, struct ll_sb_info, in kbytesfree_show() local
102 rc = ll_statfs_internal(sbi->ll_sb, &osfs, in kbytesfree_show()
122 struct ll_sb_info *sbi = container_of(kobj, struct ll_sb_info, in kbytesavail_show() local
127 rc = ll_statfs_internal(sbi->ll_sb, &osfs, in kbytesavail_show()
147 struct ll_sb_info *sbi = container_of(kobj, struct ll_sb_info, in filestotal_show() local
152 rc = ll_statfs_internal(sbi->ll_sb, &osfs, in filestotal_show()
[all …]
Dllite_lib.c69 struct ll_sb_info *sbi = NULL; in ll_init_sbi() local
76 sbi = kzalloc(sizeof(*sbi), GFP_NOFS); in ll_init_sbi()
77 if (!sbi) in ll_init_sbi()
80 spin_lock_init(&sbi->ll_lock); in ll_init_sbi()
81 mutex_init(&sbi->ll_lco.lco_lock); in ll_init_sbi()
82 spin_lock_init(&sbi->ll_pp_extent_lock); in ll_init_sbi()
83 spin_lock_init(&sbi->ll_process_lock); in ll_init_sbi()
84 sbi->ll_rw_stats_on = 0; in ll_init_sbi()
94 atomic_set(&sbi->ll_cache.ccc_users, 0); in ll_init_sbi()
95 sbi->ll_cache.ccc_lru_max = lru_page_max; in ll_init_sbi()
[all …]
Dvvp_dev.c196 struct ll_sb_info *sbi; in cl_sb_init() local
202 sbi = ll_s2sbi(sb); in cl_sb_init()
206 sbi->ll_dt_exp->exp_obd->obd_lu_dev); in cl_sb_init()
209 sbi->ll_cl = cl; in cl_sb_init()
210 sbi->ll_site = cl2lu_dev(cl)->ld_site; in cl_sb_init()
220 struct ll_sb_info *sbi; in cl_sb_fini() local
226 sbi = ll_s2sbi(sb); in cl_sb_fini()
229 cld = sbi->ll_cl; in cl_sb_fini()
233 sbi->ll_cl = NULL; in cl_sb_fini()
234 sbi->ll_site = NULL; in cl_sb_fini()
[all …]
Ddir.c480 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_dir_read() local
482 int api32 = ll_need_32bit_api(sbi); in ll_dir_read()
483 int hash64 = sbi->ll_flags & LL_SBI_64BIT_HASH; in ll_dir_read()
597 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_readdir() local
598 int hash64 = sbi->ll_flags & LL_SBI_64BIT_HASH; in ll_readdir()
599 int api32 = ll_need_32bit_api(sbi); in ll_readdir()
630 ll_stats_ops_tally(sbi, LPROC_LL_READDIR, 1); in ll_readdir()
659 struct ll_sb_info *sbi = ll_i2sbi(dir); in ll_dir_setdirstripe() local
673 err = md_create(sbi->ll_md_exp, op_data, lump, sizeof(*lump), mode, in ll_dir_setdirstripe()
688 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_dir_setstripe() local
[all …]
Dxattr.c89 int xattr_type_filter(struct ll_sb_info *sbi, int xattr_type) in xattr_type_filter() argument
93 !(sbi->ll_flags & LL_SBI_ACL)) in xattr_type_filter()
96 if (xattr_type == XATTR_USER_T && !(sbi->ll_flags & LL_SBI_USER_XATTR)) in xattr_type_filter()
111 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_setxattr_common() local
122 rc = xattr_type_filter(sbi, xattr_type); in ll_setxattr_common()
147 if (sbi->ll_flags & LL_SBI_RMT_CLIENT && in ll_setxattr_common()
150 rce = rct_search(&sbi->ll_rct, current_pid()); in ll_setxattr_common()
159 ee = et_search_del(&sbi->ll_et, current_pid(), in ll_setxattr_common()
191 rc = md_setxattr(sbi->ll_md_exp, ll_inode2fid(inode), in ll_setxattr_common()
203 sbi->ll_flags &= ~LL_SBI_USER_XATTR; in ll_setxattr_common()
[all …]
Dllite_nfs.c88 struct ll_sb_info *sbi = ll_s2sbi(sb); in search_inode_for_lustre() local
93 ll_need_32bit_api(sbi)); in search_inode_for_lustre()
103 rc = ll_get_default_mdsize(sbi, &eadatalen); in search_inode_for_lustre()
118 rc = md_getattr(sbi->ll_md_exp, op_data, &req); in search_inode_for_lustre()
283 struct ll_sb_info *sbi; in ll_get_parent() local
293 sbi = ll_s2sbi(dir->i_sb); in ll_get_parent()
298 rc = ll_get_default_mdsize(sbi, &lmmsize); in ll_get_parent()
308 rc = md_getattr_name(sbi->ll_md_exp, op_data, &req); in ll_get_parent()
Drw.c280 static void ll_ra_stats_inc_sbi(struct ll_sb_info *sbi, enum ra_stat which);
301 static unsigned long ll_ra_count_get(struct ll_sb_info *sbi, in ll_ra_count_get() argument
305 struct ll_ra_info *ra = &sbi->ll_ra_info; in ll_ra_count_get()
344 void ll_ra_count_put(struct ll_sb_info *sbi, unsigned long len) in ll_ra_count_put() argument
346 struct ll_ra_info *ra = &sbi->ll_ra_info; in ll_ra_count_put()
351 static void ll_ra_stats_inc_sbi(struct ll_sb_info *sbi, enum ra_stat which) in ll_ra_stats_inc_sbi() argument
354 lprocfs_counter_incr(sbi->ll_ra_stats, which); in ll_ra_stats_inc_sbi()
359 struct ll_sb_info *sbi = ll_i2sbi(mapping->host); in ll_ra_stats_inc() local
361 ll_ra_stats_inc_sbi(sbi, which); in ll_ra_stats_inc()
946 void ras_update(struct ll_sb_info *sbi, struct inode *inode, in ras_update() argument
[all …]
Ddcache.c123 struct ll_sb_info *sbi = ll_i2sbi(inode); in find_cbdata() local
128 rc = md_find_cbdata(sbi->ll_md_exp, ll_inode2fid(inode), in find_cbdata()
137 rc = obd_find_cbdata(sbi->ll_dt_exp, lsm, return_if_equal, NULL); in find_cbdata()
292 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_lookup_finish_locks() local
296 ll_set_lock_data(sbi->ll_md_exp, inode, it, NULL); in ll_lookup_finish_locks()
Dfile.c335 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_file_release() local
343 if (sbi->ll_flags & LL_SBI_RMT_CLIENT && is_root_inode(inode)) { in ll_file_release()
349 rct_del(&sbi->ll_rct, current_pid()); in ll_file_release()
350 et_search_free(&sbi->ll_et, current_pid()); in ll_file_release()
356 ll_stats_ops_tally(sbi, LPROC_LL_RELEASE, 1); in ll_file_release()
378 rc = ll_md_close(sbi->ll_md_exp, inode, file); in ll_file_release()
390 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_intent_file_open() local
421 rc = md_intent_lock(sbi->ll_md_exp, op_data, lmm, lmmsize, itp, in ll_intent_file_open()
448 ll_set_lock_data(sbi->ll_md_exp, inode, itp, NULL); in ll_intent_file_open()
744 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_lease_open() local
[all …]
Dllite_internal.h645 static inline int ll_need_32bit_api(struct ll_sb_info *sbi) in ll_need_32bit_api() argument
650 return unlikely(is_compat_task() || (sbi->ll_flags & LL_SBI_32BIT_API)); in ll_need_32bit_api()
652 return unlikely(sbi->ll_flags & LL_SBI_32BIT_API); in ll_need_32bit_api()
662 void ldebugfs_unregister_mountpoint(struct ll_sb_info *sbi);
663 void ll_stats_ops_tally(struct ll_sb_info *sbi, int op, int count);
665 void ll_rw_stats_tally(struct ll_sb_info *sbi, pid_t pid,
714 int ll_glimpse_ioctl(struct ll_sb_info *sbi,
786 int ll_get_max_mdsize(struct ll_sb_info *sbi, int *max_mdsize);
787 int ll_get_default_mdsize(struct ll_sb_info *sbi, int *default_mdsize);
992 static inline struct client_obd *sbi2mdc(struct ll_sb_info *sbi) in sbi2mdc() argument
[all …]
Dxattr_cache.c279 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_xattr_find_get_lock() local
280 struct obd_export *exp = sbi->ll_md_exp; in ll_xattr_find_get_lock()
340 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_xattr_cache_refill() local
354 ll_stats_ops_tally(sbi, LPROC_LL_GETXATTR_HITS, 1); in ll_xattr_cache_refill()
434 ll_set_lock_data(sbi->ll_md_exp, inode, oit, NULL); in ll_xattr_cache_refill()
Dnamei.c681 struct ll_sb_info *sbi = ll_i2sbi(dir); in ll_create_node() local
702 ll_set_lock_data(sbi->ll_md_exp, inode, it, NULL); in ll_create_node()
769 struct ll_sb_info *sbi = ll_i2sbi(dir); in ll_new_node() local
785 err = md_create(sbi->ll_md_exp, op_data, tgt, tgt_len, mode, in ll_new_node()
1046 struct ll_sb_info *sbi = ll_i2sbi(dir); in ll_link() local
1062 err = md_link(sbi->ll_md_exp, op_data, &request); in ll_link()
1068 ll_stats_ops_tally(sbi, LPROC_LL_LINK, 1); in ll_link()
1078 struct ll_sb_info *sbi = ll_i2sbi(old_dir); in ll_rename() local
1094 err = md_rename(sbi->ll_md_exp, op_data, in ll_rename()
1103 ll_stats_ops_tally(sbi, LPROC_LL_RENAME, 1); in ll_rename()
Dsymlink.c49 struct ll_sb_info *sbi = ll_i2sbi(inode); in ll_readlink_internal() local
75 rc = md_getattr(sbi->ll_md_exp, op_data, request); in ll_readlink_internal()
Dvvp_io.c819 struct ll_sb_info *sbi = ll_i2sbi(inode); in vvp_io_read_page() local
829 if (sbi->ll_ra_info.ra_max_pages_per_file && in vvp_io_read_page()
830 sbi->ll_ra_info.ra_max_pages) in vvp_io_read_page()
831 ras_update(sbi, inode, ras, page->cp_index, in vvp_io_read_page()
853 if (sbi->ll_ra_info.ra_max_pages_per_file && in vvp_io_read_page()
854 sbi->ll_ra_info.ra_max_pages) in vvp_io_read_page()
975 struct ll_sb_info *sbi = ll_i2sbi(inode); in vvp_io_commit_write() local
1054 ll_stats_ops_tally(sbi, tallyop, 1); in vvp_io_commit_write()
Dstatahead.c954 struct ll_sb_info *sbi = ll_i2sbi(dir); in ll_agl_thread() local
963 atomic_inc(&sbi->ll_agl_total); in ll_agl_thread()
1045 struct ll_sb_info *sbi = ll_i2sbi(dir); in ll_statahead_thread() local
1060 if (sbi->ll_flags & LL_SBI_AGL_ENABLED) in ll_statahead_thread()
1063 atomic_inc(&sbi->ll_sa_total); in ll_statahead_thread()
1462 struct ll_sb_info *sbi = ll_i2sbi(sai->sai_inode); in ll_sai_unplug() local
1474 sai->sai_max = min(2 * sai->sai_max, sbi->ll_sa_max); in ll_sai_unplug()
1481 atomic_inc(&sbi->ll_sa_wrong); in ll_sai_unplug()
Dremote_perm.c246 struct ll_sb_info *sbi = ll_i2sbi(inode); in lustre_check_remote_perm() local
275 rc = md_get_remote_perm(sbi->ll_md_exp, ll_inode2fid(inode), in lustre_check_remote_perm()