• Home
  • Raw
  • Download

Lines Matching refs:bh

19 #define AFFS_BLOCK(sb, bh, blk)		(AFFS_HEAD(bh)->table[AFFS_SB(sb)->s_hashsize-1-(blk)])  argument
29 #define AFFS_HEAD(bh) ((struct affs_head *)(bh)->b_data) argument
30 #define AFFS_TAIL(sb, bh) ((struct affs_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(struct affs_t… argument
31 #define AFFS_ROOT_HEAD(bh) ((struct affs_root_head *)(bh)->b_data) argument
32 #define AFFS_ROOT_TAIL(sb, bh) ((struct affs_root_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(str… argument
33 #define AFFS_DATA_HEAD(bh) ((struct affs_data_head *)(bh)->b_data) argument
34 #define AFFS_DATA(bh) (((struct affs_data_head *)(bh)->b_data)->data) argument
133 extern int affs_insert_hash(struct inode *inode, struct buffer_head *bh);
136 extern u32 affs_checksum_block(struct super_block *sb, struct buffer_head *bh);
137 extern void affs_fix_checksum(struct super_block *sb, struct buffer_head *bh);
229 struct buffer_head *bh; in affs_getzeroblk() local
232 bh = sb_getblk(sb, block); in affs_getzeroblk()
233 lock_buffer(bh); in affs_getzeroblk()
234 memset(bh->b_data, 0 , sb->s_blocksize); in affs_getzeroblk()
235 set_buffer_uptodate(bh); in affs_getzeroblk()
236 unlock_buffer(bh); in affs_getzeroblk()
237 return bh; in affs_getzeroblk()
244 struct buffer_head *bh; in affs_getemptyblk() local
247 bh = sb_getblk(sb, block); in affs_getemptyblk()
248 wait_on_buffer(bh); in affs_getemptyblk()
249 set_buffer_uptodate(bh); in affs_getemptyblk()
250 return bh; in affs_getemptyblk()
255 affs_brelse(struct buffer_head *bh) in affs_brelse() argument
257 if (bh) in affs_brelse()
258 pr_debug("affs_brelse: %lld\n", (long long) bh->b_blocknr); in affs_brelse()
259 brelse(bh); in affs_brelse()
263 affs_adjust_checksum(struct buffer_head *bh, u32 val) in affs_adjust_checksum() argument
265 u32 tmp = be32_to_cpu(((__be32 *)bh->b_data)[5]); in affs_adjust_checksum()
266 ((__be32 *)bh->b_data)[5] = cpu_to_be32(tmp - val); in affs_adjust_checksum()
269 affs_adjust_bitmapchecksum(struct buffer_head *bh, u32 val) in affs_adjust_bitmapchecksum() argument
271 u32 tmp = be32_to_cpu(((__be32 *)bh->b_data)[0]); in affs_adjust_bitmapchecksum()
272 ((__be32 *)bh->b_data)[0] = cpu_to_be32(tmp - val); in affs_adjust_bitmapchecksum()