]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: make btrfs_read_disk_super return struct btrfs_disk_super
authorNikolay Borisov <nborisov@suse.com>
Wed, 15 Apr 2020 12:53:46 +0000 (15:53 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:24 +0000 (11:25 +0200)
commit669d9cd2eb26a898a8624dc06b0ef0cf19ad87d0
treed0db5616e1bec5e43749c08818ef17e21a3dc501
parent52e137d8bda2076bd7c21f36bb38c714c2c991b1
btrfs: make btrfs_read_disk_super return struct btrfs_disk_super

Instead of returning both the page and the super block structure, make
btrfs_read_disk_super just return a pointer to struct btrfs_disk_super.
As a result the function signature is simplified. Also,
read_cache_page_gfp can never return NULL so check its return value only
for IS_ERR.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c