From 3bf25cb40d899eeb5a471f497e56ddfe2c96c019 Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Tue, 8 May 2007 00:35:16 -0700 Subject: 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 Acked-by: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- fs/udf/truncate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fs/udf/truncate.c') diff --git a/fs/udf/truncate.c b/fs/udf/truncate.c index 84191801f4c9..0449b2216e71 100644 --- a/fs/udf/truncate.c +++ b/fs/udf/truncate.c @@ -119,7 +119,7 @@ void udf_discard_prealloc(struct inode * inode) } UDF_I_LENEXTENTS(inode) = lbcount; - udf_release_data(epos.bh); + brelse(epos.bh); } void udf_truncate_extents(struct inode * inode) @@ -287,5 +287,5 @@ void udf_truncate_extents(struct inode * inode) } UDF_I_LENEXTENTS(inode) = inode->i_size; - udf_release_data(epos.bh); + brelse(epos.bh); } -- cgit v1.2.3