diff options
author | David Sterba <dsterba@suse.com> | 2018-08-24 16:31:17 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 19:02:21 +0200 |
commit | ed1b4ed79df258f08f16eac4a4fb96dc6d1a0f3a (patch) | |
tree | 80aac814d09c7fc96e0975e4150f834def45678a /fs/btrfs/extent_io.c | |
parent | c79adfc085c0662385cfcb55f15590303212e8e9 (diff) | |
download | linux-ed1b4ed79df258f08f16eac4a4fb96dc6d1a0f3a.tar.gz linux-ed1b4ed79df258f08f16eac4a4fb96dc6d1a0f3a.tar.bz2 linux-ed1b4ed79df258f08f16eac4a4fb96dc6d1a0f3a.zip |
btrfs: switch extent_buffer::lock_nested to bool
The member is tracking simple status of the lock, we can use bool for
that and make some room for further space reduction in the structure.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 97d32b80060d..d61b526dc856 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -4679,7 +4679,7 @@ __alloc_extent_buffer(struct btrfs_fs_info *fs_info, u64 start, rwlock_init(&eb->lock); atomic_set(&eb->blocking_readers, 0); atomic_set(&eb->blocking_writers, 0); - eb->lock_nested = 0; + eb->lock_nested = false; init_waitqueue_head(&eb->write_lock_wq); init_waitqueue_head(&eb->read_lock_wq); |