forked from btrfs/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btrfs: locking extents for async writeback
For async writebacks, lock the extents and then perform the cow file range for async. Unlock when async_chunk is free'd. Since writeback is performed in range, so locked_page can be removed from the structures and function parameters. Similarly for page_started and nr_written. A writeback could involve a hole, so check if the range locked covers the entire extent returned by find_lock_delalloc_range(). If not try to lock the entire range or unlock the pages locked. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
- Loading branch information
Showing
4 changed files
with
92 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters