mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 18:53:52 +08:00
btrfs: get fs_info from eb in btrfs_check_leaf_relaxed
We can read fs_info from extent buffer and can drop it from the parameters. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
1c4360ee05
commit
cfdaad5e5f
@ -4101,7 +4101,7 @@ void btrfs_mark_buffer_dirty(struct extent_buffer *buf)
|
||||
* So here we should only check item pointers, not item data.
|
||||
*/
|
||||
if (btrfs_header_level(buf) == 0 &&
|
||||
btrfs_check_leaf_relaxed(fs_info, buf)) {
|
||||
btrfs_check_leaf_relaxed(buf)) {
|
||||
btrfs_print_leaf(buf);
|
||||
ASSERT(0);
|
||||
}
|
||||
|
@ -968,8 +968,7 @@ int btrfs_check_leaf_full(struct extent_buffer *leaf)
|
||||
return check_leaf(leaf, true);
|
||||
}
|
||||
|
||||
int btrfs_check_leaf_relaxed(struct btrfs_fs_info *fs_info,
|
||||
struct extent_buffer *leaf)
|
||||
int btrfs_check_leaf_relaxed(struct extent_buffer *leaf)
|
||||
{
|
||||
return check_leaf(leaf, false);
|
||||
}
|
||||
|
@ -20,8 +20,7 @@ int btrfs_check_leaf_full(struct extent_buffer *leaf);
|
||||
* Less strict leaf checker.
|
||||
* Will only check item pointers, not reading item data.
|
||||
*/
|
||||
int btrfs_check_leaf_relaxed(struct btrfs_fs_info *fs_info,
|
||||
struct extent_buffer *leaf);
|
||||
int btrfs_check_leaf_relaxed(struct extent_buffer *leaf);
|
||||
int btrfs_check_node(struct btrfs_fs_info *fs_info, struct extent_buffer *node);
|
||||
|
||||
int btrfs_check_chunk_valid(struct btrfs_fs_info *fs_info,
|
||||
|
Loading…
Reference in New Issue
Block a user