mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 00:51:35 +00: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:
parent
ff116fc8d1
commit
3bf25cb40d
12 changed files with 174 additions and 177 deletions
|
@ -274,12 +274,6 @@ udf_read_ptagged(struct super_block *sb, kernel_lb_addr loc, uint32_t offset, ui
|
|||
loc.logicalBlockNum + offset, ident);
|
||||
}
|
||||
|
||||
void udf_release_data(struct buffer_head *bh)
|
||||
{
|
||||
if (bh)
|
||||
brelse(bh);
|
||||
}
|
||||
|
||||
void udf_update_tag(char *data, int length)
|
||||
{
|
||||
tag *tptr = (tag *)data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue