Lines Matching refs:bh
30 struct buffer_head *bh = NULL; in ext4_encrypted_get_link() local
42 bh = ext4_bread(NULL, inode, 0, 0); in ext4_encrypted_get_link()
43 if (IS_ERR(bh)) in ext4_encrypted_get_link()
44 return ERR_CAST(bh); in ext4_encrypted_get_link()
45 if (!bh) { in ext4_encrypted_get_link()
49 caddr = bh->b_data; in ext4_encrypted_get_link()
54 brelse(bh); in ext4_encrypted_get_link()
68 static void ext4_free_link(void *bh) in ext4_free_link() argument
70 brelse(bh); in ext4_free_link()
76 struct buffer_head *bh; in ext4_get_link() local
94 bh = ext4_getblk(NULL, inode, 0, EXT4_GET_BLOCKS_CACHED_NOWAIT); in ext4_get_link()
95 if (IS_ERR(bh)) in ext4_get_link()
96 return ERR_CAST(bh); in ext4_get_link()
97 if (!bh || !ext4_buffer_uptodate(bh)) in ext4_get_link()
100 bh = ext4_bread(NULL, inode, 0, 0); in ext4_get_link()
101 if (IS_ERR(bh)) in ext4_get_link()
102 return ERR_CAST(bh); in ext4_get_link()
103 if (!bh) { in ext4_get_link()
109 set_delayed_call(callback, ext4_free_link, bh); in ext4_get_link()
110 nd_terminate_link(bh->b_data, inode->i_size, in ext4_get_link()
112 return bh->b_data; in ext4_get_link()