OSDN Git Service

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)
commit5f008163a559d566a0ee1190a0a24f3eec6f1ea7
tree3abd629b4cffb4de245510594da552116656f172
parentb75b7ca7c27dfd61dba368f390b7d4dc20b3a8cb
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