You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user