btrfs: pull node/sector/stripe sizes out of root and into fs_info
We track the node sizes per-root, but they never vary from the values in the superblock. This patch messes with the 80-column style a bit, but subsequent patches to factor out root->fs_info into a convenience variable fix it up again. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
f15376df0d
commit
da17066c40
39 changed files with 432 additions and 414 deletions
|
|
@ -2235,7 +2235,7 @@ raid56_parity_alloc_scrub_rbio(struct btrfs_root *root, struct bio *bio,
|
|||
}
|
||||
|
||||
/* Now we just support the sectorsize equals to page size */
|
||||
ASSERT(root->sectorsize == PAGE_SIZE);
|
||||
ASSERT(root->fs_info->sectorsize == PAGE_SIZE);
|
||||
ASSERT(rbio->stripe_npages == stripe_nsectors);
|
||||
bitmap_copy(rbio->dbitmap, dbitmap, stripe_nsectors);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue