Home
last modified time | relevance | path

Searched refs:sbinfo (Results 1 - 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/mm/
H A Dshmem.c219 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); in shmem_inode_acct_block() local
224 if (sbinfo->max_blocks) { in shmem_inode_acct_block()
225 if (percpu_counter_compare(&sbinfo->used_blocks, in shmem_inode_acct_block()
226 sbinfo->max_blocks - pages) > 0) in shmem_inode_acct_block()
228 percpu_counter_add(&sbinfo->used_blocks, pages); in shmem_inode_acct_block()
241 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); in shmem_inode_unacct_blocks() local
243 if (sbinfo->max_blocks) in shmem_inode_unacct_blocks()
244 percpu_counter_sub(&sbinfo->used_blocks, pages); in shmem_inode_unacct_blocks()
277 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); in shmem_reserve_inode() local
281 spin_lock(&sbinfo in shmem_reserve_inode()
342 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); shmem_free_inode() local
521 shmem_unused_huge_shrink(struct shmem_sb_info *sbinfo, struct shrink_control *sc, unsigned long nr_to_split) shmem_unused_huge_shrink() argument
635 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); shmem_unused_huge_scan() local
646 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); shmem_unused_huge_count() local
653 shmem_unused_huge_shrink(struct shmem_sb_info *sbinfo, struct shrink_control *sc, unsigned long nr_to_split) shmem_unused_huge_shrink() argument
660 is_huge_enabled(struct shmem_sb_info *sbinfo) is_huge_enabled() argument
1092 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); shmem_setattr() local
1158 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); shmem_evict_inode() local
1483 shmem_get_sbmpol(struct shmem_sb_info *sbinfo) shmem_get_sbmpol() argument
1498 shmem_get_sbmpol(struct shmem_sb_info *sbinfo) shmem_get_sbmpol() argument
1805 struct shmem_sb_info *sbinfo; shmem_getpage_gfp() local
2288 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); shmem_get_inode() local
2773 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); shmem_fallocate() local
2903 struct shmem_sb_info *sbinfo = SHMEM_SB(dentry->d_sb); shmem_statfs() local
3614 struct shmem_sb_info *sbinfo = SHMEM_SB(fc->root->d_sb); shmem_reconfigure() local
3676 struct shmem_sb_info *sbinfo = SHMEM_SB(root->d_sb); shmem_show_options() local
3727 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); shmem_put_super() local
3740 struct shmem_sb_info *sbinfo; shmem_fill_super() local
4104 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); shmem_huge_enabled() local
[all...]
/kernel/linux/linux-5.10/fs/hugetlbfs/
H A Dinode.c1012 struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(root->d_sb); in hugetlbfs_show_options() local
1013 struct hugepage_subpool *spool = sbinfo->spool; in hugetlbfs_show_options()
1014 unsigned long hpage_size = huge_page_size(sbinfo->hstate); in hugetlbfs_show_options()
1015 unsigned hpage_shift = huge_page_shift(sbinfo->hstate); in hugetlbfs_show_options()
1018 if (!uid_eq(sbinfo->uid, GLOBAL_ROOT_UID)) in hugetlbfs_show_options()
1020 from_kuid_munged(&init_user_ns, sbinfo->uid)); in hugetlbfs_show_options()
1021 if (!gid_eq(sbinfo->gid, GLOBAL_ROOT_GID)) in hugetlbfs_show_options()
1023 from_kgid_munged(&init_user_ns, sbinfo->gid)); in hugetlbfs_show_options()
1024 if (sbinfo->mode != 0755) in hugetlbfs_show_options()
1025 seq_printf(m, ",mode=%o", sbinfo in hugetlbfs_show_options()
1049 struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(dentry->d_sb); hugetlbfs_statfs() local
1090 hugetlbfs_dec_free_inodes(struct hugetlbfs_sb_info *sbinfo) hugetlbfs_dec_free_inodes() argument
1105 hugetlbfs_inc_free_inodes(struct hugetlbfs_sb_info *sbinfo) hugetlbfs_inc_free_inodes() argument
1119 struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(sb); hugetlbfs_alloc_inode() local
1341 struct hugetlbfs_sb_info *sbinfo; hugetlbfs_fill_super() local
[all...]
/kernel/linux/linux-6.6/mm/
H A Dshmem.c213 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); in shmem_inode_acct_block() local
220 if (sbinfo->max_blocks) { in shmem_inode_acct_block()
221 if (percpu_counter_compare(&sbinfo->used_blocks, in shmem_inode_acct_block()
222 sbinfo->max_blocks - pages) > 0) in shmem_inode_acct_block()
229 percpu_counter_add(&sbinfo->used_blocks, pages); in shmem_inode_acct_block()
246 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); in shmem_inode_unacct_blocks() local
251 if (sbinfo->max_blocks) in shmem_inode_unacct_blocks()
252 percpu_counter_sub(&sbinfo->used_blocks, pages); in shmem_inode_unacct_blocks()
332 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); in shmem_reserve_inode() local
336 raw_spin_lock(&sbinfo in shmem_reserve_inode()
398 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); shmem_free_inode() local
612 shmem_unused_huge_shrink(struct shmem_sb_info *sbinfo, struct shrink_control *sc, unsigned long nr_to_split) shmem_unused_huge_shrink() argument
727 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); shmem_unused_huge_scan() local
738 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); shmem_unused_huge_count() local
751 shmem_unused_huge_shrink(struct shmem_sb_info *sbinfo, struct shrink_control *sc, unsigned long nr_to_split) shmem_unused_huge_shrink() argument
1253 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); shmem_evict_inode() local
1445 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); shmem_writepage() local
1565 shmem_get_sbmpol(struct shmem_sb_info *sbinfo) shmem_get_sbmpol() argument
1580 shmem_get_sbmpol(struct shmem_sb_info *sbinfo) shmem_get_sbmpol() argument
1951 struct shmem_sb_info *sbinfo; shmem_get_folio_gfp() local
2457 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); __shmem_get_inode() local
3047 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); shmem_fallocate() local
3199 struct shmem_sb_info *sbinfo = SHMEM_SB(dentry->d_sb); shmem_statfs() local
3606 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); shmem_initxattrs() local
3680 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); shmem_xattr_handler_set() local
4121 struct shmem_sb_info *sbinfo = SHMEM_SB(fc->root->d_sb); shmem_reconfigure() local
4216 struct shmem_sb_info *sbinfo = SHMEM_SB(root->d_sb); shmem_show_options() local
4271 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); shmem_put_super() local
4287 struct shmem_sb_info *sbinfo; shmem_fill_super() local
[all...]
H A Dshmem_quota.c169 struct shmem_sb_info *sbinfo = dquot->dq_sb->s_fs_info; in shmem_acquire_dquot() local
200 new_entry->bhardlimit = sbinfo->qlimits.usrquota_bhardlimit; in shmem_acquire_dquot()
201 new_entry->ihardlimit = sbinfo->qlimits.usrquota_ihardlimit; in shmem_acquire_dquot()
203 new_entry->bhardlimit = sbinfo->qlimits.grpquota_bhardlimit; in shmem_acquire_dquot()
204 new_entry->ihardlimit = sbinfo->qlimits.grpquota_ihardlimit; in shmem_acquire_dquot()
238 struct shmem_sb_info *sbinfo = dquot->dq_sb->s_fs_info; in shmem_is_empty_dquot() local
243 bhardlimit = sbinfo->qlimits.usrquota_bhardlimit; in shmem_is_empty_dquot()
244 ihardlimit = sbinfo->qlimits.usrquota_ihardlimit; in shmem_is_empty_dquot()
246 bhardlimit = sbinfo->qlimits.grpquota_bhardlimit; in shmem_is_empty_dquot()
247 ihardlimit = sbinfo in shmem_is_empty_dquot()
[all...]
/kernel/linux/linux-6.6/fs/hugetlbfs/
H A Dinode.c1179 struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(root->d_sb); in hugetlbfs_show_options() local
1180 struct hugepage_subpool *spool = sbinfo->spool; in hugetlbfs_show_options()
1181 unsigned long hpage_size = huge_page_size(sbinfo->hstate); in hugetlbfs_show_options()
1182 unsigned hpage_shift = huge_page_shift(sbinfo->hstate); in hugetlbfs_show_options()
1185 if (!uid_eq(sbinfo->uid, GLOBAL_ROOT_UID)) in hugetlbfs_show_options()
1187 from_kuid_munged(&init_user_ns, sbinfo->uid)); in hugetlbfs_show_options()
1188 if (!gid_eq(sbinfo->gid, GLOBAL_ROOT_GID)) in hugetlbfs_show_options()
1190 from_kgid_munged(&init_user_ns, sbinfo->gid)); in hugetlbfs_show_options()
1191 if (sbinfo->mode != 0755) in hugetlbfs_show_options()
1192 seq_printf(m, ",mode=%o", sbinfo in hugetlbfs_show_options()
1216 struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(dentry->d_sb); hugetlbfs_statfs() local
1257 hugetlbfs_dec_free_inodes(struct hugetlbfs_sb_info *sbinfo) hugetlbfs_dec_free_inodes() argument
1272 hugetlbfs_inc_free_inodes(struct hugetlbfs_sb_info *sbinfo) hugetlbfs_inc_free_inodes() argument
1286 struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(sb); hugetlbfs_alloc_inode() local
1510 struct hugetlbfs_sb_info *sbinfo; hugetlbfs_fill_super() local
[all...]

Completed in 11 milliseconds