Re: [PATCH v3 1/2] btrfs: defrag: bring back the old file extent search behavior

David Sterba
2022-02-14T16:18:54Z

On Fri, Feb 11, 2022 at 02:46:12PM +0800, Qu Wenruo wrote:
> @@ -1216,7 +1367,8 @@ static int defrag_collect_targets(struct btrfs_inode *inode,
> u64 range_len;
>
> last_is_target = false;
> - em = defrag_lookup_extent(&inode->vfs_inode, cur, locked);
> + em = defrag_lookup_extent(&inode->vfs_inode, cur,
> + ctrl->newer_than, locked);

This uses the ctrl structure, if this is also supposed to go to 5.16
please provide a version that applies, thanks.