Home
last modified time | relevance | path

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

/linux-4.4.14/mm/
Dshmem.c201 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); in shmem_reserve_inode() local
202 if (sbinfo->max_inodes) { in shmem_reserve_inode()
203 spin_lock(&sbinfo->stat_lock); in shmem_reserve_inode()
204 if (!sbinfo->free_inodes) { in shmem_reserve_inode()
205 spin_unlock(&sbinfo->stat_lock); in shmem_reserve_inode()
208 sbinfo->free_inodes--; in shmem_reserve_inode()
209 spin_unlock(&sbinfo->stat_lock); in shmem_reserve_inode()
216 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); in shmem_free_inode() local
217 if (sbinfo->max_inodes) { in shmem_free_inode()
218 spin_lock(&sbinfo->stat_lock); in shmem_free_inode()
[all …]
/linux-4.4.14/fs/hugetlbfs/
Dinode.c855 struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(dentry->d_sb); in hugetlbfs_statfs() local
860 if (sbinfo) { in hugetlbfs_statfs()
861 spin_lock(&sbinfo->stat_lock); in hugetlbfs_statfs()
864 if (sbinfo->spool) { in hugetlbfs_statfs()
867 spin_lock(&sbinfo->spool->lock); in hugetlbfs_statfs()
868 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
869 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
870 - sbinfo->spool->used_hpages; in hugetlbfs_statfs()
872 spin_unlock(&sbinfo->spool->lock); in hugetlbfs_statfs()
873 buf->f_files = sbinfo->max_inodes; in hugetlbfs_statfs()
[all …]