diff options
author | Feifei Xu <xufeifei@linux.vnet.ibm.com> | 2016-06-01 07:18:28 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-06-06 11:17:12 -0400 |
commit | ef9f2db365c31433e52b0c5863793273bb632666 (patch) | |
tree | 9120d4e28c7e4aabc9b8cd69d86215cf4b8945e6 /fs/btrfs/disk-io.c | |
parent | d94f43b4c6b88b9393422868d8dfde14c5923858 (diff) |
Btrfs: self-tests: Use macros instead of constants and add missing newline
This commit replaces numerical constants with appropriate
preprocessor macros.
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: Feifei Xu <xufeifei@linux.vnet.ibm.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 06ef433552b3..c3764ddb2a46 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1323,7 +1323,8 @@ struct btrfs_root *btrfs_alloc_dummy_root(u32 sectorsize, u32 nodesize) | |||
1323 | if (!root) | 1323 | if (!root) |
1324 | return ERR_PTR(-ENOMEM); | 1324 | return ERR_PTR(-ENOMEM); |
1325 | /* We don't use the stripesize in selftest, set it as sectorsize */ | 1325 | /* We don't use the stripesize in selftest, set it as sectorsize */ |
1326 | __setup_root(nodesize, sectorsize, sectorsize, root, NULL, 1); | 1326 | __setup_root(nodesize, sectorsize, sectorsize, root, NULL, |
1327 | BTRFS_ROOT_TREE_OBJECTID); | ||
1327 | set_bit(BTRFS_ROOT_DUMMY_ROOT, &root->state); | 1328 | set_bit(BTRFS_ROOT_DUMMY_ROOT, &root->state); |
1328 | root->alloc_bytenr = 0; | 1329 | root->alloc_bytenr = 0; |
1329 | 1330 | ||