diff options
author | Chris Mason <clm@fb.com> | 2014-10-04 09:56:45 -0700 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-10-04 09:56:45 -0700 |
commit | bbf65cf0b5b67843ca094df01019222b85af2183 (patch) | |
tree | 35e1a8c54876cc8a105a2ad0230526195d3cafbf /fs/btrfs/qgroup.c | |
parent | bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138 (diff) | |
parent | fccb84c94a9755f48668e43d0a44d6ecc750900f (diff) | |
download | linux-bbf65cf0b5b67843ca094df01019222b85af2183.tar.gz linux-bbf65cf0b5b67843ca094df01019222b85af2183.tar.bz2 linux-bbf65cf0b5b67843ca094df01019222b85af2183.zip |
Merge branch 'cleanup/misc-for-3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux into for-linus
Signed-off-by: Chris Mason <clm@fb.com>
Conflicts:
fs/btrfs/extent_io.c
Diffstat (limited to 'fs/btrfs/qgroup.c')
-rw-r--r-- | fs/btrfs/qgroup.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c index cd9717ea8c9d..48b60dbf807f 100644 --- a/fs/btrfs/qgroup.c +++ b/fs/btrfs/qgroup.c @@ -539,10 +539,9 @@ static int add_qgroup_item(struct btrfs_trans_handle *trans, struct extent_buffer *leaf; struct btrfs_key key; -#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS - if (unlikely(test_bit(BTRFS_ROOT_DUMMY_ROOT, "a_root->state))) + if (btrfs_test_is_dummy_root(quota_root)) return 0; -#endif + path = btrfs_alloc_path(); if (!path) return -ENOMEM; @@ -698,10 +697,9 @@ static int update_qgroup_info_item(struct btrfs_trans_handle *trans, int ret; int slot; -#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS - if (unlikely(test_bit(BTRFS_ROOT_DUMMY_ROOT, &root->state))) + if (btrfs_test_is_dummy_root(root)) return 0; -#endif + key.objectid = 0; key.type = BTRFS_QGROUP_INFO_KEY; key.offset = qgroup->qgroupid; |