Lines Matching refs:bh
19 #define AFFS_BLOCK(sb, bh, blk) (AFFS_HEAD(bh)->table[AFFS_SB(sb)->s_hashsize-1-(blk)]) argument
21 #define AFFS_HEAD(bh) ((struct affs_head *)(bh)->b_data) argument
22 #define AFFS_TAIL(sb, bh) ((struct affs_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(struct affs_t… argument
23 #define AFFS_ROOT_HEAD(bh) ((struct affs_root_head *)(bh)->b_data) argument
24 #define AFFS_ROOT_TAIL(sb, bh) ((struct affs_root_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(str… argument
25 #define AFFS_DATA_HEAD(bh) ((struct affs_data_head *)(bh)->b_data) argument
26 #define AFFS_DATA(bh) (((struct affs_data_head *)(bh)->b_data)->data) argument
137 extern int affs_insert_hash(struct inode *inode, struct buffer_head *bh);
140 extern u32 affs_checksum_block(struct super_block *sb, struct buffer_head *bh);
141 extern void affs_fix_checksum(struct super_block *sb, struct buffer_head *bh);
253 struct buffer_head *bh; in affs_getzeroblk() local
256 bh = sb_getblk(sb, block); in affs_getzeroblk()
257 lock_buffer(bh); in affs_getzeroblk()
258 memset(bh->b_data, 0 , sb->s_blocksize); in affs_getzeroblk()
259 set_buffer_uptodate(bh); in affs_getzeroblk()
260 unlock_buffer(bh); in affs_getzeroblk()
261 return bh; in affs_getzeroblk()
268 struct buffer_head *bh; in affs_getemptyblk() local
271 bh = sb_getblk(sb, block); in affs_getemptyblk()
272 wait_on_buffer(bh); in affs_getemptyblk()
273 set_buffer_uptodate(bh); in affs_getemptyblk()
274 return bh; in affs_getemptyblk()
279 affs_brelse(struct buffer_head *bh) in affs_brelse() argument
281 if (bh) in affs_brelse()
282 pr_debug("%s: %lld\n", __func__, (long long) bh->b_blocknr); in affs_brelse()
283 brelse(bh); in affs_brelse()
287 affs_adjust_checksum(struct buffer_head *bh, u32 val) in affs_adjust_checksum() argument
289 u32 tmp = be32_to_cpu(((__be32 *)bh->b_data)[5]); in affs_adjust_checksum()
290 ((__be32 *)bh->b_data)[5] = cpu_to_be32(tmp - val); in affs_adjust_checksum()
293 affs_adjust_bitmapchecksum(struct buffer_head *bh, u32 val) in affs_adjust_bitmapchecksum() argument
295 u32 tmp = be32_to_cpu(((__be32 *)bh->b_data)[0]); in affs_adjust_bitmapchecksum()
296 ((__be32 *)bh->b_data)[0] = cpu_to_be32(tmp - val); in affs_adjust_bitmapchecksum()