diff options
author | David Sterba <dsterba@suse.com> | 2015-11-27 10:31:35 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-07 09:01:15 -0500 |
commit | e4058b54d1e442b6b3eca949f0d63d49ba2b020d (patch) | |
tree | dead11c1b6c35da853a74f133f45f55ffd107e4f /fs/btrfs/inode-map.c | |
parent | 4d4ab6d6bc05ba65169de9a5391e6ccbe09d8719 (diff) |
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.c | 2 |
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) | |||
48 | /* Since the commit root is read-only, we can safely skip locking. */ | 48 | /* Since the commit root is read-only, we can safely skip locking. */ |
49 | path->skip_locking = 1; | 49 | path->skip_locking = 1; |
50 | path->search_commit_root = 1; | 50 | path->search_commit_root = 1; |
51 | path->reada = 2; | 51 | path->reada = READA_FORWARD; |
52 | 52 | ||
53 | key.objectid = BTRFS_FIRST_FREE_OBJECTID; | 53 | key.objectid = BTRFS_FIRST_FREE_OBJECTID; |
54 | key.offset = 0; | 54 | key.offset = 0; |