summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2017-10-16 15:48:40 +0200
committerDavid Sterba <dsterba@suse.com>2017-10-30 12:28:01 +0100
commitd4417e22551377c6e589c15ff2b931610e5230bc (patch)
treee9cc58012de6a8b32f260dc2c316da53306ca9ce /fs/btrfs/super.c
parentbtrfs: Use bd_dev to generate index when dev_state_hashtable add items. (diff)
downloadlinux-d4417e22551377c6e589c15ff2b931610e5230bc.tar.xz
linux-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/super.c')
-rw-r--r--fs/btrfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 880ab4949f69..4fb7eefb80ae 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -2126,7 +2126,7 @@ static int btrfs_statfs(struct dentry *dentry, struct kstatfs *buf)
* succeed even if the Avail is zero. But this is better than the other
* way around.
*/
- thresh = 4 * 1024 * 1024;
+ thresh = SZ_4M;
if (!mixed && total_free_meta - thresh < block_rsv->size)
buf->f_bavail = 0;