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:
@@ -93,7 +93,7 @@ static inline struct udf_sb_info *UDF_SB(struct super_block *sb)
|
||||
for (i=0; i<nr_groups; i++)\
|
||||
{\
|
||||
if (UDF_SB_BITMAP(X,Y,Z,i))\
|
||||
udf_release_data(UDF_SB_BITMAP(X,Y,Z,i));\
|
||||
brelse(UDF_SB_BITMAP(X,Y,Z,i));\
|
||||
}\
|
||||
if (size <= PAGE_SIZE)\
|
||||
kfree(UDF_SB_PARTMAPS(X)[Y].Z.s_bitmap);\
|
||||
|
Reference in New Issue
Block a user