diff options
author | 2020-04-15 15:53:46 +0300 | |
---|---|---|
committer | 2020-05-25 11:25:24 +0200 | |
commit | b335eab890ed4c5b8e45e4b3d12f303686298850 (patch) | |
tree | d0db5616e1bec5e43749c08818ef17e21a3dc501 /fs/btrfs/tree-log.c | |
parent | btrfs: use list_for_each_entry_safe in free_reloc_roots (diff) | |
download | wireguard-linux-b335eab890ed4c5b8e45e4b3d12f303686298850.tar.xz wireguard-linux-b335eab890ed4c5b8e45e4b3d12f303686298850.zip |
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>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions