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:

committed by
David Sterba

parent
f15376df0d
commit
da17066c40
@@ -98,7 +98,7 @@ static int do_setxattr(struct btrfs_trans_handle *trans,
|
||||
size_t name_len = strlen(name);
|
||||
int ret = 0;
|
||||
|
||||
if (name_len + size > BTRFS_MAX_XATTR_SIZE(root))
|
||||
if (name_len + size > BTRFS_MAX_XATTR_SIZE(root->fs_info))
|
||||
return -ENOSPC;
|
||||
|
||||
path = btrfs_alloc_path();
|
||||
|
Reference in New Issue
Block a user