forked from torvalds/linux
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
btrfs: implement subpage metadata read and its endio function
For subpage metadata read, since we're completely relying on io tree other than page bits, its read submission and endio function is different from the original page size. For submission part: - Do extent locking/waiting Instead of page locking/waiting, since we don't rely on page bits anymore. - Submit extent page directly To simply the process, as all the metadata read is always contained in one page. For endio part: - Do extent locking/waiting This behavior has a small problem that, extent locking/waiting are all going to allocate memory, thus they can all fail. Currently we're using GFP_ATOMIC, but still we may hit ENOSPC someday. Signed-off-by: Qu Wenruo <wqu@suse.com>
- Loading branch information
1 parent
e501596
commit 1cc0af35d8945ec5e3a36ca3f0d51c1c70a37e1a
Showing
2 changed files
with
189 additions
and
1 deletion.
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