summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode-map.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-11-27 16:31:35 +0100
committerDavid Sterba <dsterba@suse.com>2016-01-07 15:01:15 +0100
commite4058b54d1e442b6b3eca949f0d63d49ba2b020d (patch)
treedead11c1b6c35da853a74f133f45f55ffd107e4f /fs/btrfs/inode-map.c
parent4d4ab6d6bc05ba65169de9a5391e6ccbe09d8719 (diff)
downloadlinux-stable-e4058b54d1e442b6b3eca949f0d63d49ba2b020d.tar.gz
linux-stable-e4058b54d1e442b6b3eca949f0d63d49ba2b020d.tar.bz2
linux-stable-e4058b54d1e442b6b3eca949f0d63d49ba2b020d.zip
btrfs: cleanup, use enum values for btrfs_path reada
Replace the integers by enums for better readability. The value 2 does not have any meaning since a717531942f488209dded30f6bc648167bcefa72 "Btrfs: do less aggressive btree readahead" (2009-01-22). Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode-map.c')
-rw-r--r--fs/btrfs/inode-map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode-map.c b/fs/btrfs/inode-map.c
index 53014e963617..1951ad69382f 100644
--- a/fs/btrfs/inode-map.c
+++ b/fs/btrfs/inode-map.c
@@ -48,7 +48,7 @@ static int caching_kthread(void *data)
/* Since the commit root is read-only, we can safely skip locking. */
path->skip_locking = 1;
path->search_commit_root = 1;
- path->reada = 2;
+ path->reada = READA_FORWARD;
key.objectid = BTRFS_FIRST_FREE_OBJECTID;
key.offset = 0;