summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorAnand Jain2018-03-07 10:29:18 +0100
committerDavid Sterba2018-03-31 01:26:50 +0200
commit7c829b722dffb22aaf9e3ea1b1d88dac49bd0768 (patch)
tree1dba1902eb1013a71c51ae2a4bb594b55729be4c /fs/btrfs/volumes.c
parentbtrfs: open code trivial helper btrfs_page_exists_in_range (diff)
downloadkernel-qcow2-linux-7c829b722dffb22aaf9e3ea1b1d88dac49bd0768.tar.gz
kernel-qcow2-linux-7c829b722dffb22aaf9e3ea1b1d88dac49bd0768.tar.xz
kernel-qcow2-linux-7c829b722dffb22aaf9e3ea1b1d88dac49bd0768.zip
btrfs: add define for oldest generation
Some functions can filter metadata by the generation. Add a define that will annotate such arguments. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> [ update changelog ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 1622d3b73771..1e72357bdfa8 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -4208,7 +4208,8 @@ static int btrfs_uuid_scan_kthread(void *data)
key.offset = 0;
while (1) {
- ret = btrfs_search_forward(root, &key, path, 0);
+ ret = btrfs_search_forward(root, &key, path,
+ BTRFS_OLDEST_GENERATION);
if (ret) {
if (ret > 0)
ret = 0;