Lines Matching refs:sb

39 sv_sb_fic_inode(struct super_block * sb, unsigned int i)  in sv_sb_fic_inode()  argument
41 struct sysv_sb_info *sbi = SYSV_SB(sb); in sv_sb_fic_inode()
56 sysv_raw_inode(struct super_block *sb, unsigned ino, struct buffer_head **bh) in sysv_raw_inode() argument
58 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_raw_inode()
63 *bh = sb_bread(sb, block); in sysv_raw_inode()
70 static int refill_free_cache(struct super_block *sb) in refill_free_cache() argument
72 struct sysv_sb_info *sbi = SYSV_SB(sb); in refill_free_cache()
78 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache()
83 *sv_sb_fic_inode(sb,i++) = cpu_to_fs16(SYSV_SB(sb), ino); in refill_free_cache()
89 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache()
102 struct super_block *sb = inode->i_sb; in sysv_free_inode() local
103 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_free_inode()
109 sb = inode->i_sb; in sysv_free_inode()
115 raw_inode = sysv_raw_inode(sb, ino, &bh); in sysv_free_inode()
124 *sv_sb_fic_inode(sb,count++) = cpu_to_fs16(sbi, ino); in sysv_free_inode()
128 dirty_sb(sb); in sysv_free_inode()
137 struct super_block *sb = dir->i_sb; in sysv_new_inode() local
138 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_new_inode()
146 inode = new_inode(sb); in sysv_new_inode()
152 if (count == 0 || (*sv_sb_fic_inode(sb,count-1) == 0)) { in sysv_new_inode()
153 count = refill_free_cache(sb); in sysv_new_inode()
161 ino = *sv_sb_fic_inode(sb,--count); in sysv_new_inode()
164 dirty_sb(sb); in sysv_new_inode()
181 unsigned long sysv_count_free_inodes(struct super_block * sb) in sysv_count_free_inodes() argument
183 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_count_free_inodes()
198 raw_inode = sysv_raw_inode(sb, ino, &bh); in sysv_count_free_inodes()
206 raw_inode = sysv_raw_inode(sb, ino, &bh); in sysv_count_free_inodes()
223 if (!(sb->s_flags & MS_RDONLY)) { in sysv_count_free_inodes()
224 *sbi->s_sb_total_free_inodes = cpu_to_fs16(SYSV_SB(sb), count); in sysv_count_free_inodes()
225 dirty_sb(sb); in sysv_count_free_inodes()