udf: use get_bh()
Make UDF use get_bh() instead of directly accessing b_count and use brelse() instead of udf_release_data() which does just brelse()... Signed-off-by: Jan Kara <jack@suse.cz> Acked-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -81,7 +81,7 @@ uint32_t udf_get_pblock_virt15(struct super_block *sb, uint32_t block, uint16_t
|
||||
|
||||
loc = le32_to_cpu(((__le32 *)bh->b_data)[index]);
|
||||
|
||||
udf_release_data(bh);
|
||||
brelse(bh);
|
||||
|
||||
if (UDF_I_LOCATION(UDF_SB_VAT(sb)).partitionReferenceNum == partition)
|
||||
{
|
||||
|
Reference in New Issue
Block a user