diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2020-09-24 19:39:16 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-08 17:53:47 +0300 |
commit | a14b78ad06aba0fa7e76d2bc13c5ba581a7f331a (patch) | |
tree | c777a29dc6c69bd1ae8fa2e32a491cda74aa6a22 /fs/btrfs/raid56.h | |
parent | b8d8e1fd570a194904f545b135efc880d96a41a4 (diff) | |
download | linux-a14b78ad06aba0fa7e76d2bc13c5ba581a7f331a.tar.xz |
btrfs: introduce btrfs_inode_lock()/unlock()
btrfs_inode_lock/unlock() are wrappers around inode locks, separating
the type of lock and actual locking.
- 0 - default, exclusive lock
- BTRFS_ILOCK_SHARED - for shared locks, for possible parallel DIO
- BTRFS_ILOCK_TRY - for the RWF_NOWAIT sequence
The bits SHARED and TRY can be combined together.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
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/raid56.h')
0 files changed, 0 insertions, 0 deletions