mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +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
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue