diff options
author | Anand Jain <anand.jain@oracle.com> | 2018-03-07 17:29:18 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-31 01:26:50 +0200 |
commit | 7c829b722dffb22aaf9e3ea1b1d88dac49bd0768 (patch) | |
tree | 1dba1902eb1013a71c51ae2a4bb594b55729be4c /fs/btrfs/uuid-tree.c | |
parent | 051c98eb11e6fd64a8306851c34ee485b5817955 (diff) | |
download | linux-7c829b722dffb22aaf9e3ea1b1d88dac49bd0768.tar.bz2 |
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/uuid-tree.c')
-rw-r--r-- | fs/btrfs/uuid-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/uuid-tree.c b/fs/btrfs/uuid-tree.c index 726f928238d0..9916f03430bc 100644 --- a/fs/btrfs/uuid-tree.c +++ b/fs/btrfs/uuid-tree.c @@ -282,7 +282,7 @@ int btrfs_uuid_tree_iterate(struct btrfs_fs_info *fs_info, key.offset = 0; again_search_slot: - 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; |