Searched hist:"22 b398ee" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/btrfs/ |
H A D | ioctl.c | 22b398ee Fri Aug 06 03:12:37 CDT 2021 Qu Wenruo <wqu@suse.com> btrfs: defrag: introduce helper to defrag a contiguous prepared range
A new helper, defrag_one_locked_target(), introduced to do the real part of defrag.
The caller needs to ensure both page and extents bits are locked, and no ordered extent exists for the range, and all writeback is finished.
The core defrag part is pretty straight-forward:
- Reserve space - Set extent bits to defrag - Update involved pages to be dirty
Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
|