diff options
author | Nikolay Borisov <nborisov@suse.com> | 2017-10-16 16:48:40 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-10-30 12:28:01 +0100 |
commit | d4417e22551377c6e589c15ff2b931610e5230bc (patch) | |
tree | e9cc58012de6a8b32f260dc2c316da53306ca9ce /fs/btrfs/ctree.h | |
parent | 859a58a2074858dc03943c1fa1a2975576f9b0b8 (diff) | |
download | lwn-d4417e22551377c6e589c15ff2b931610e5230bc.tar.gz lwn-d4417e22551377c6e589c15ff2b931610e5230bc.zip |
btrfs: Replace opencoded sizes with their symbolic constants
Currently btrfs' code uses a mix of opencoded sizes and defines from sizes.h.
Let's unifiy the code base to always use the symbolic constants. No functional
changes
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index e2afe524e25e..7bda8429e93f 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -523,7 +523,7 @@ struct btrfs_caching_control { }; /* Once caching_thread() finds this much free space, it will wake up waiters. */ -#define CACHING_CTL_WAKE_UP (1024 * 1024 * 2) +#define CACHING_CTL_WAKE_UP SZ_2M struct btrfs_io_ctl { void *cur, *orig; |