summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <rgoldwyn@suse.com>2020-09-24 11:39:18 -0500
committerDavid Sterba <dsterba@suse.com>2020-12-08 15:53:48 +0100
commite9adabb9712ef9424cbbeeaa027d962ab5262e19 (patch)
tree572904723d2f07c1a70bd7895619302ad0b00da8 /fs/btrfs/inode.c
parentc352370633400d13765cc88080c969799ea51108 (diff)
btrfs: use shared lock for direct writes within EOF
Direct writes within EOF are safe to be performed with inode shared lock to improve parallelization with other direct writes or reads because EOF is not changed and there is no race with truncate(). Direct reads are already performed under shared inode lock. This patch is precursor to removing btrfs_inode->dio_sem. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions