Home
last modified time | relevance | path

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

/mm/
Dshmem.c218 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); in shmem_inode_acct_block() local
223 if (sbinfo->max_blocks) { in shmem_inode_acct_block()
224 if (percpu_counter_compare(&sbinfo->used_blocks, in shmem_inode_acct_block()
225 sbinfo->max_blocks - pages) > 0) in shmem_inode_acct_block()
227 percpu_counter_add(&sbinfo->used_blocks, pages); in shmem_inode_acct_block()
240 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); in shmem_inode_unacct_blocks() local
242 if (sbinfo->max_blocks) in shmem_inode_unacct_blocks()
243 percpu_counter_sub(&sbinfo->used_blocks, pages); in shmem_inode_unacct_blocks()
266 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); in shmem_reserve_inode() local
267 if (sbinfo->max_inodes) { in shmem_reserve_inode()
[all …]