forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btrfs: Push inode locking and unlocking into buffered/direct write
Push inode locking and unlocking closer to where we perform the I/O. For this we need to move the write checks inside the respective functions as well. pos is assigned after write checks because generic_write_check can modify iocb->ki_pos. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
- Loading branch information
1 parent
2022340
commit 2e4ab0a
Showing
1 changed file
with
44 additions
and
23 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