Searched refs:sbinfo (Results 1 – 2 of 2) sorted by relevance
589 struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(dentry->d_sb); in hugetlbfs_statfs() local594 if (sbinfo) { in hugetlbfs_statfs()595 spin_lock(&sbinfo->stat_lock); in hugetlbfs_statfs()598 if (sbinfo->spool) { in hugetlbfs_statfs()601 spin_lock(&sbinfo->spool->lock); in hugetlbfs_statfs()602 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()603 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()604 - sbinfo->spool->used_hpages; in hugetlbfs_statfs()606 spin_unlock(&sbinfo->spool->lock); in hugetlbfs_statfs()607 buf->f_files = sbinfo->max_inodes; in hugetlbfs_statfs()[all …]
199 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); in shmem_reserve_inode() local200 if (sbinfo->max_inodes) { in shmem_reserve_inode()201 spin_lock(&sbinfo->stat_lock); in shmem_reserve_inode()202 if (!sbinfo->free_inodes) { in shmem_reserve_inode()203 spin_unlock(&sbinfo->stat_lock); in shmem_reserve_inode()206 sbinfo->free_inodes--; in shmem_reserve_inode()207 spin_unlock(&sbinfo->stat_lock); in shmem_reserve_inode()214 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); in shmem_free_inode() local215 if (sbinfo->max_inodes) { in shmem_free_inode()216 spin_lock(&sbinfo->stat_lock); in shmem_free_inode()[all …]