diff options
author | David Sterba <dsterba@suse.com> | 2015-11-27 16:31:35 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-07 15:01:15 +0100 |
commit | e4058b54d1e442b6b3eca949f0d63d49ba2b020d (patch) | |
tree | dead11c1b6c35da853a74f133f45f55ffd107e4f /fs/btrfs/xattr.c | |
parent | btrfs: constify static arrays (diff) | |
download | linux-e4058b54d1e442b6b3eca949f0d63d49ba2b020d.tar.xz linux-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/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) path = btrfs_alloc_path(); if (!path) return -ENOMEM; - path->reada = 2; + path->reada = READA_FORWARD; /* search for our xattrs */ ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); |