/drivers/staging/lustre/lustre/llite/ |
H A D | lproc_llite.c | 171 struct ll_sb_info *sbi = ll_s2sbi((struct super_block *)m->private); local 174 LASSERT(sbi != NULL); 176 if (sbi->ll_flags & LL_SBI_RMT_CLIENT) 218 struct ll_sb_info *sbi = ll_s2sbi(sb); local 222 spin_lock(&sbi->ll_lock); 223 pages_number = sbi->ll_ra_info.ra_max_pages; 224 spin_unlock(&sbi->ll_lock); 234 struct ll_sb_info *sbi = ll_s2sbi(sb); local 248 spin_lock(&sbi->ll_lock); 249 sbi 259 struct ll_sb_info *sbi = ll_s2sbi(sb); local 276 struct ll_sb_info *sbi = ll_s2sbi(sb); local 303 struct ll_sb_info *sbi = ll_s2sbi(sb); local 320 struct ll_sb_info *sbi = ll_s2sbi(sb); local 349 struct ll_sb_info *sbi = ll_s2sbi(sb); local 375 struct ll_sb_info *sbi = ll_s2sbi(sb); local 467 struct ll_sb_info *sbi = ll_s2sbi(sb); local 476 struct ll_sb_info *sbi = ll_s2sbi(sb); local 596 struct ll_sb_info *sbi = ll_s2sbi(sb); local 605 struct ll_sb_info *sbi = ll_s2sbi(sb); local 625 struct ll_sb_info *sbi = ll_s2sbi(sb); local 635 struct ll_sb_info *sbi = ll_s2sbi(sb); local 654 struct ll_sb_info *sbi = ll_s2sbi(sb); local 669 struct ll_sb_info *sbi = ll_s2sbi(sb); local 679 struct ll_sb_info *sbi = ll_s2sbi(sb); local 698 struct ll_sb_info *sbi = ll_s2sbi(sb); local 713 struct ll_sb_info *sbi = ll_s2sbi(sb); local 728 struct ll_sb_info *sbi = ll_s2sbi(sb); local 743 struct ll_sb_info *sbi = ll_s2sbi(sb); local 782 struct ll_sb_info *sbi = ll_s2sbi(sb); local 795 struct ll_sb_info *sbi = ll_s2sbi(sb); local 904 ll_stats_ops_tally(struct ll_sb_info *sbi, int op, int count) argument 946 struct ll_sb_info *sbi = ll_s2sbi(sb); local 1100 lprocfs_unregister_mountpoint(struct ll_sb_info *sbi) argument 1155 struct ll_sb_info *sbi = seq->private; local 1191 struct ll_sb_info *sbi = seq->private; local 1235 struct ll_sb_info *sbi = seq->private; local 1265 struct ll_sb_info *sbi = seq->private; local 1306 ll_rw_stats_tally(struct ll_sb_info *sbi, pid_t pid, struct ll_file_data *file, loff_t pos, size_t count, int rw) argument 1412 struct ll_sb_info *sbi = seq->private; local 1468 struct ll_sb_info *sbi = seq->private; local [all...] |
H A D | llite_lib.c | 71 struct ll_sb_info *sbi = NULL; local 78 sbi = kzalloc(sizeof(*sbi), GFP_NOFS); 79 if (!sbi) 82 spin_lock_init(&sbi->ll_lock); 83 mutex_init(&sbi->ll_lco.lco_lock); 84 spin_lock_init(&sbi->ll_pp_extent_lock); 85 spin_lock_init(&sbi->ll_process_lock); 86 sbi->ll_rw_stats_on = 0; 97 atomic_set(&sbi 143 struct ll_sb_info *sbi = ll_s2sbi(sb); local 157 struct ll_sb_info *sbi = ll_s2sbi(sb); local 623 ll_get_max_mdsize(struct ll_sb_info *sbi, int *lmmsize) argument 637 ll_get_default_mdsize(struct ll_sb_info *sbi, int *lmmsize) argument 650 ll_get_max_cookiesize(struct ll_sb_info *sbi, int *lmmsize) argument 663 ll_get_default_cookiesize(struct ll_sb_info *sbi, int *lmmsize) argument 721 struct ll_sb_info *sbi = ll_s2sbi(sb); local 752 struct ll_sb_info *sbi; local 986 struct ll_sb_info *sbi; local 1088 struct ll_sb_info *sbi = ll_s2sbi(sb); local 1175 struct ll_sb_info *sbi = ll_i2sbi(inode); local 1245 struct ll_sb_info *sbi = ll_i2sbi(inode); local 1573 struct ll_sb_info *sbi = ll_s2sbi(sb); local 1681 struct ll_sb_info *sbi = ll_i2sbi(inode); local 1852 struct ll_sb_info *sbi = ll_i2sbi(inode); local 1900 struct ll_sb_info *sbi = ll_i2sbi(inode); local 1992 struct ll_sb_info *sbi = ll_i2sbi(inode); local 2009 struct ll_sb_info *sbi = ll_s2sbi(sb); local 2052 struct ll_sb_info *sbi = ll_s2sbi(sb); local 2085 struct ll_sb_info *sbi = NULL; local 2161 struct ll_sb_info *sbi = NULL; local 2317 struct ll_sb_info *sbi; local 2348 struct ll_sb_info *sbi = ll_i2sbi(inode); local [all...] |
H A D | vvp_dev.c | 197 struct ll_sb_info *sbi; local 203 sbi = ll_s2sbi(sb); 207 sbi->ll_dt_exp->exp_obd->obd_lu_dev); 210 sbi->ll_cl = cl; 211 sbi->ll_site = cl2lu_dev(cl)->ld_site; 221 struct ll_sb_info *sbi; local 227 sbi = ll_s2sbi(sb); 230 cld = sbi->ll_cl; 234 sbi->ll_cl = NULL; 235 sbi 432 struct ll_sb_info *sbi; local 474 struct ll_sb_info *sbi; local 498 struct ll_sb_info *sbi; local 527 struct ll_sb_info *sbi = PDE_DATA(inode); local [all...] |
H A D | dir.c | 481 struct ll_sb_info *sbi = ll_i2sbi(inode); local 483 int api32 = ll_need_32bit_api(sbi); 484 int hash64 = sbi->ll_flags & LL_SBI_64BIT_HASH; 598 struct ll_sb_info *sbi = ll_i2sbi(inode); local 599 int hash64 = sbi->ll_flags & LL_SBI_64BIT_HASH; 600 int api32 = ll_need_32bit_api(sbi); 631 ll_stats_ops_tally(sbi, LPROC_LL_READDIR, 1); 660 struct ll_sb_info *sbi = ll_i2sbi(dir); local 674 err = md_create(sbi->ll_md_exp, op_data, lump, sizeof(*lump), mode, 689 struct ll_sb_info *sbi local 796 struct ll_sb_info *sbi = ll_i2sbi(inode); local 869 struct ll_sb_info *sbi = ll_i2sbi(inode); local 902 struct ll_sb_info *sbi = ll_s2sbi(sb); local 974 struct ll_sb_info *sbi = ll_s2sbi(sb); local 1080 quotactl_ioctl(struct ll_sb_info *sbi, struct if_quotactl *qctl) argument 1246 struct ll_sb_info *sbi = ll_i2sbi(inode); local 1966 struct ll_sb_info *sbi = ll_i2sbi(inode); local [all...] |
H A D | xattr.c | 89 int xattr_type_filter(struct ll_sb_info *sbi, int xattr_type) argument 93 !(sbi->ll_flags & LL_SBI_ACL)) 96 if (xattr_type == XATTR_USER_T && !(sbi->ll_flags & LL_SBI_USER_XATTR)) 111 struct ll_sb_info *sbi = ll_i2sbi(inode); local 123 rc = xattr_type_filter(sbi, xattr_type); 148 if (sbi->ll_flags & LL_SBI_RMT_CLIENT && 151 rce = rct_search(&sbi->ll_rct, current_pid()); 160 ee = et_search_del(&sbi->ll_et, current_pid(), 192 rc = md_setxattr(sbi->ll_md_exp, ll_inode2fid(inode), oc, 206 sbi 288 struct ll_sb_info *sbi = ll_i2sbi(inode); local 567 struct ll_sb_info *sbi = ll_i2sbi(inode); local [all...] |
H A D | llite_nfs.c | 88 struct ll_sb_info *sbi = ll_s2sbi(sb); local 93 ll_need_32bit_api(sbi)); 103 rc = ll_get_default_mdsize(sbi, &eadatalen); 118 rc = md_getattr(sbi->ll_md_exp, op_data, &req); 284 struct ll_sb_info *sbi; local 294 sbi = ll_s2sbi(dir->i_sb); 299 rc = ll_get_default_mdsize(sbi, &lmmsize); 309 rc = md_getattr_name(sbi->ll_md_exp, op_data, &req);
|
H A D | symlink.c | 49 struct ll_sb_info *sbi = ll_i2sbi(inode); local 75 rc = md_getattr(sbi->ll_md_exp, op_data, request);
|
H A D | rw.c | 288 static void ll_ra_stats_inc_sbi(struct ll_sb_info *sbi, enum ra_stat which); 294 * /param sbi superblock for filesystem readahead state ll_ra_info 298 * WARNING: This algorithm is used to reduce contention on sbi->ll_lock. 309 static unsigned long ll_ra_count_get(struct ll_sb_info *sbi, argument 313 struct ll_ra_info *ra = &sbi->ll_ra_info; 351 void ll_ra_count_put(struct ll_sb_info *sbi, unsigned long len) argument 353 struct ll_ra_info *ra = &sbi->ll_ra_info; 357 static void ll_ra_stats_inc_sbi(struct ll_sb_info *sbi, enum ra_stat which) argument 360 lprocfs_counter_incr(sbi->ll_ra_stats, which); 365 struct ll_sb_info *sbi local 974 ras_update(struct ll_sb_info *sbi, struct inode *inode, struct ll_readahead_state *ras, unsigned long index, unsigned hit) argument 1220 struct ll_sb_info *sbi = ll_i2sbi(inode); local [all...] |
H A D | dcache.c | 123 struct ll_sb_info *sbi = ll_i2sbi(inode); local 128 rc = md_find_cbdata(sbi->ll_md_exp, ll_inode2fid(inode), 137 rc = obd_find_cbdata(sbi->ll_dt_exp, lsm, return_if_equal, NULL); 304 struct ll_sb_info *sbi = ll_i2sbi(dentry->d_inode); local 308 ll_set_lock_data(sbi->ll_md_exp, inode, it, NULL);
|
H A D | llite_internal.h | 400 /* flags for sbi->ll_flags */ 657 static inline int ll_need_32bit_api(struct ll_sb_info *sbi) argument 662 return unlikely(is_compat_task() || (sbi->ll_flags & LL_SBI_32BIT_API)); 664 return unlikely(sbi->ll_flags & LL_SBI_32BIT_API); 676 void lprocfs_unregister_mountpoint(struct ll_sb_info *sbi); 677 void ll_stats_ops_tally(struct ll_sb_info *sbi, int op, int count); 679 void ll_rw_stats_tally(struct ll_sb_info *sbi, pid_t pid, 685 static inline void lprocfs_unregister_mountpoint(struct ll_sb_info *sbi) {} argument 687 void ll_stats_ops_tally(struct ll_sb_info *sbi, int op, int count) {} argument 692 static inline void ll_rw_stats_tally(struct ll_sb_info *sbi, pid_ argument 1031 sbi2mdc(struct ll_sb_info *sbi) argument [all...] |
H A D | xattr_cache.c | 298 struct ll_sb_info *sbi = ll_i2sbi(inode); local 299 struct obd_export *exp = sbi->ll_md_exp; 356 struct ll_sb_info *sbi = ll_i2sbi(inode); local 372 ll_stats_ops_tally(sbi, LPROC_LL_GETXATTR_HITS, 1); 452 ll_set_lock_data(sbi->ll_md_exp, inode, oit, NULL);
|
H A D | file.c | 345 struct ll_sb_info *sbi = ll_i2sbi(inode); local 353 if (sbi->ll_flags & LL_SBI_RMT_CLIENT && 360 rct_del(&sbi->ll_rct, current_pid()); 361 et_search_free(&sbi->ll_et, current_pid()); 367 ll_stats_ops_tally(sbi, LPROC_LL_RELEASE, 1); 389 rc = ll_md_close(sbi->ll_md_exp, inode, file); 400 struct ll_sb_info *sbi = ll_i2sbi(file->f_dentry->d_inode); local 434 rc = md_intent_lock(sbi->ll_md_exp, op_data, lmm, lmmsize, itp, 461 ll_set_lock_data(sbi->ll_md_exp, file->f_dentry->d_inode, 761 struct ll_sb_info *sbi local 1048 ll_glimpse_ioctl(struct ll_sb_info *sbi, struct lov_stripe_md *lsm, lstat_t *st) argument 1399 struct ll_sb_info *sbi = ll_i2sbi(inode); local 1857 struct ll_sb_info *sbi = ll_i2sbi(inode); local 2688 struct ll_sb_info *sbi = ll_i2sbi(inode); local 2961 struct ll_sb_info *sbi = ll_i2sbi(dentry->d_inode); local 3028 struct ll_sb_info *sbi = ll_i2sbi(inode); local 3341 struct ll_sb_info *sbi = ll_i2sbi(inode); local 3418 struct ll_sb_info *sbi = ll_i2sbi(inode); local 3533 struct ll_sb_info *sbi = ll_i2sbi(inode); local [all...] |
H A D | remote_perm.c | 250 struct ll_sb_info *sbi = ll_i2sbi(inode); local 281 rc = md_get_remote_perm(sbi->ll_md_exp, ll_inode2fid(inode), oc,
|
H A D | namei.c | 697 struct ll_sb_info *sbi = ll_i2sbi(dir); local 718 ll_set_lock_data(sbi->ll_md_exp, inode, it, NULL); 785 struct ll_sb_info *sbi = ll_i2sbi(dir); local 799 err = md_create(sbi->ll_md_exp, op_data, tgt, tgt_len, mode, 902 struct ll_sb_info *sbi = ll_i2sbi(dir); local 917 err = md_link(sbi->ll_md_exp, op_data, &request); 923 ll_stats_ops_tally(sbi, LPROC_LL_LINK, 1); 1149 struct ll_sb_info *sbi = ll_i2sbi(src); local 1170 err = md_rename(sbi->ll_md_exp, op_data, 1177 ll_stats_ops_tally(sbi, LPROC_LL_RENAM [all...] |
H A D | vvp_io.c | 829 struct ll_sb_info *sbi = ll_i2sbi(inode); local 839 if (sbi->ll_ra_info.ra_max_pages_per_file && 840 sbi->ll_ra_info.ra_max_pages) 841 ras_update(sbi, inode, ras, page->cp_index, 863 if (sbi->ll_ra_info.ra_max_pages_per_file && 864 sbi->ll_ra_info.ra_max_pages) 985 struct ll_sb_info *sbi = ll_i2sbi(inode); local 1063 ll_stats_ops_tally(sbi, tallyop, 1);
|
H A D | statahead.c | 966 struct ll_sb_info *sbi = ll_i2sbi(dir); local 975 atomic_inc(&sbi->ll_agl_total); 1057 struct ll_sb_info *sbi = ll_i2sbi(dir); local 1072 if (sbi->ll_flags & LL_SBI_AGL_ENABLED) 1075 atomic_inc(&sbi->ll_sa_total); 1474 struct ll_sb_info *sbi = ll_i2sbi(sai->sai_inode); local 1486 sai->sai_max = min(2 * sai->sai_max, sbi->ll_sa_max); 1493 atomic_inc(&sbi->ll_sa_wrong);
|
H A D | llite_capa.c | 646 void ll_print_capa_stat(struct ll_sb_info *sbi) argument 648 if (sbi->ll_flags & (LL_SBI_MDS_CAPA | LL_SBI_OSS_CAPA))
|