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 a717531942
"Btrfs: do less aggressive btree readahead" (2009-01-22).
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
@@ -1102,7 +1102,7 @@ int btrfs_account_dev_extents_size(struct btrfs_device *device, u64 start,
|
||||
path = btrfs_alloc_path();
|
||||
if (!path)
|
||||
return -ENOMEM;
|
||||
path->reada = 2;
|
||||
path->reada = READA_FORWARD;
|
||||
|
||||
key.objectid = device->devid;
|
||||
key.offset = start;
|
||||
@@ -1271,7 +1271,7 @@ again:
|
||||
goto out;
|
||||
}
|
||||
|
||||
path->reada = 2;
|
||||
path->reada = READA_FORWARD;
|
||||
path->search_commit_root = 1;
|
||||
path->skip_locking = 1;
|
||||
|
||||
@@ -4260,7 +4260,7 @@ int btrfs_shrink_device(struct btrfs_device *device, u64 new_size)
|
||||
if (!path)
|
||||
return -ENOMEM;
|
||||
|
||||
path->reada = 2;
|
||||
path->reada = READA_FORWARD;
|
||||
|
||||
lock_chunks(root);
|
||||
|
||||
|
Reference in New Issue
Block a user