Home
last modified time | relevance | path

Searched refs:bh_map (Results 1 – 4 of 4) sorted by relevance

/linux-3.4.99/fs/gfs2/
Dbmap.c448 struct buffer_head *bh_map, struct metapath *mp, in gfs2_bmap_alloc() argument
565 if (buffer_zeronew(bh_map)) { in gfs2_bmap_alloc()
571 clear_buffer_zeronew(bh_map); in gfs2_bmap_alloc()
581 map_bh(bh_map, inode->i_sb, dblock); in gfs2_bmap_alloc()
582 bh_map->b_size = dblks << inode->i_blkbits; in gfs2_bmap_alloc()
583 set_buffer_new(bh_map); in gfs2_bmap_alloc()
602 struct buffer_head *bh_map, int create) in gfs2_block_map() argument
607 const unsigned int maxlen = bh_map->b_size >> inode->i_blkbits; in gfs2_block_map()
622 clear_buffer_mapped(bh_map); in gfs2_block_map()
623 clear_buffer_new(bh_map); in gfs2_block_map()
[all …]
Drecovery.c390 struct buffer_head bh_map = { .b_state = 0, .b_blocknr = 0 }; in clean_journal() local
394 bh_map.b_size = 1 << ip->i_inode.i_blkbits; in clean_journal()
395 error = gfs2_block_map(&ip->i_inode, lblock, &bh_map, 0); in clean_journal()
398 if (!bh_map.b_blocknr) { in clean_journal()
403 bh = sb_getblk(sdp->sd_vfs, bh_map.b_blocknr); in clean_journal()
Dfile.c695 struct buffer_head bh_map = { .b_state = 0, .b_blocknr = 0 }; in fallocate_chunk() local
696 bh_map.b_size = len; in fallocate_chunk()
697 set_buffer_zeronew(&bh_map); in fallocate_chunk()
699 error = gfs2_block_map(inode, lblock, &bh_map, 1); in fallocate_chunk()
702 len -= bh_map.b_size; in fallocate_chunk()
703 nr_blks = bh_map.b_size >> inode->i_blkbits; in fallocate_chunk()
705 if (!buffer_new(&bh_map)) in fallocate_chunk()
707 if (unlikely(!buffer_zeronew(&bh_map))) { in fallocate_chunk()
Dquota.c307 struct buffer_head bh_map = { .b_state = 0, .b_blocknr = 0 }; in bh_get() local
319 bh_map.b_size = 1 << ip->i_inode.i_blkbits; in bh_get()
320 error = gfs2_block_map(&ip->i_inode, block, &bh_map, 0); in bh_get()
323 error = gfs2_meta_read(ip->i_gl, bh_map.b_blocknr, DIO_WAIT, &bh); in bh_get()