Home
last modified time | relevance | path

Searched refs:sbinfo (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/kernel/mm/
H A Dshmem.c226 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); in shmem_inode_acct_block() local
231 if (sbinfo->max_blocks) { in shmem_inode_acct_block()
232 if (percpu_counter_compare(&sbinfo->used_blocks, in shmem_inode_acct_block()
233 sbinfo->max_blocks - pages) > 0) in shmem_inode_acct_block()
235 percpu_counter_add(&sbinfo->used_blocks, pages); in shmem_inode_acct_block()
248 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); in shmem_inode_unacct_blocks() local
250 if (sbinfo->max_blocks) in shmem_inode_unacct_blocks()
251 percpu_counter_sub(&sbinfo->used_blocks, pages); in shmem_inode_unacct_blocks()
284 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); in shmem_reserve_inode() local
288 spin_lock(&sbinfo->stat_lock); in shmem_reserve_inode()
[all …]
/OK3568_Linux_fs/kernel/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->mode); in hugetlbfs_show_options()
[all …]