]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove BTRFS_INODE_READDIO_NEED_LOCK
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Wed, 4 Dec 2019 11:58:53 +0000 (05:58 -0600)
committerDavid Sterba <dsterba@suse.com>
Thu, 28 May 2020 12:01:52 +0000 (14:01 +0200)
commit84c2007377b9989b3aa3bdd350336a75956f740f
tree3abd629b4cffb4de245510594da552116656f172
parent485be41f180ed22198060cf7ae30892d2350ddd5
btrfs: remove BTRFS_INODE_READDIO_NEED_LOCK

Since we now perform direct reads using i_rwsem, we can remove this
inode flag used to co-ordinate unlocked reads.

The truncate call takes i_rwsem. This means it is correctly synchronized
with concurrent direct reads.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/inode.c