projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aca37c7
)
btrfs-progs: Refactor sectorsize users in free-space-tree.c
author
Qu Wenruo
<quwenruo@cn.fujitsu.com>
Thu, 18 May 2017 02:09:53 +0000
(10:09 +0800)
committer
David Sterba
<dsterba@suse.com>
Mon, 3 Jul 2017 11:35:10 +0000
(13:35 +0200)
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
free-space-tree.c
patch
|
blob
|
history
diff --git
a/free-space-tree.c
b/free-space-tree.c
index
f3a5126
..
69a4eca
100644
(file)
--- a/
free-space-tree.c
+++ b/
free-space-tree.c
@@
-205,7
+205,7
@@
static int load_free_space_bitmaps(struct btrfs_fs_info *fs_info,
offset = key.objectid;
while (offset < key.objectid + key.offset) {
bit = free_space_test_bit(block_group, path, offset,
-
root
->sectorsize);
+
fs_info
->sectorsize);
if (prev_bit == 0 && bit == 1) {
extent_start = offset;
} else if (prev_bit == 1 && bit == 0) {
@@
-213,7
+213,7
@@
static int load_free_space_bitmaps(struct btrfs_fs_info *fs_info,
extent_count++;
}
prev_bit = bit;
- offset +=
root
->sectorsize;
+ offset +=
fs_info
->sectorsize;
}
}