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/xattr.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/xattr.c')
-rw-r--r-- | fs/btrfs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/xattr.c b/fs/btrfs/xattr.c index 1fcd7b6e7564..28b4e7e71e61 100644 --- a/fs/btrfs/xattr.c +++ b/fs/btrfs/xattr.c | |||
@@ -283,7 +283,7 @@ ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size) | |||
283 | path = btrfs_alloc_path(); | 283 | path = btrfs_alloc_path(); |
284 | if (!path) | 284 | if (!path) |
285 | return -ENOMEM; | 285 | return -ENOMEM; |
286 | path->reada = 2; | 286 | path->reada = READA_FORWARD; |
287 | 287 | ||
288 | /* search for our xattrs */ | 288 | /* search for our xattrs */ |
289 | ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); | 289 | ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); |