Lines Matching refs:block
159 extern void affs_free_block(struct super_block *sb, u32 block);
223 static inline bool affs_validblock(struct super_block *sb, int block) in affs_validblock() argument
225 return(block >= AFFS_SB(sb)->s_reserved && in affs_validblock()
226 block < AFFS_SB(sb)->s_partition_size); in affs_validblock()
235 affs_bread(struct super_block *sb, int block) in affs_bread() argument
237 pr_debug("%s: %d\n", __func__, block); in affs_bread()
238 if (affs_validblock(sb, block)) in affs_bread()
239 return sb_bread(sb, block); in affs_bread()
243 affs_getblk(struct super_block *sb, int block) in affs_getblk() argument
245 pr_debug("%s: %d\n", __func__, block); in affs_getblk()
246 if (affs_validblock(sb, block)) in affs_getblk()
247 return sb_getblk(sb, block); in affs_getblk()
251 affs_getzeroblk(struct super_block *sb, int block) in affs_getzeroblk() argument
254 pr_debug("%s: %d\n", __func__, block); in affs_getzeroblk()
255 if (affs_validblock(sb, block)) { in affs_getzeroblk()
256 bh = sb_getblk(sb, block); in affs_getzeroblk()
266 affs_getemptyblk(struct super_block *sb, int block) in affs_getemptyblk() argument
269 pr_debug("%s: %d\n", __func__, block); in affs_getemptyblk()
270 if (affs_validblock(sb, block)) { in affs_getemptyblk()
271 bh = sb_getblk(sb, block); in affs_getemptyblk()