projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09e3a28
)
btrfs: check-integrity: use proper helper to access btrfs_header
author
David Sterba
<dsterba@suse.com>
Tue, 15 Sep 2020 12:26:27 +0000
(14:26 +0200)
committer
David Sterba
<dsterba@suse.com>
Tue, 8 Dec 2020 14:53:51 +0000
(15:53 +0100)
There's one raw use of le->cpu conversion but we have a helper to do
that for us, so use it.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/check-integrity.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/check-integrity.c
b/fs/btrfs/check-integrity.c
index 81a8c87a5afbb217c75747a183c80805b72d1fe7..106874c959a05a501825e1957bfb04ee173c93e1 100644
(file)
--- a/
fs/btrfs/check-integrity.c
+++ b/
fs/btrfs/check-integrity.c
@@
-954,7
+954,7
@@
static noinline_for_stack int btrfsic_process_metablock(
sf->prev = NULL;
continue_with_new_stack_frame:
- sf->block->generation =
le64_to_cpu(sf->hdr->generation
);
+ sf->block->generation =
btrfs_stack_header_generation(sf->hdr
);
if (0 == sf->hdr->level) {
struct btrfs_leaf *const leafhdr =
(struct btrfs_leaf *)sf->hdr;