aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-05-23 10:40:18 +0200
committerDavid Sterba <dsterba@suse.com>2023-06-19 13:59:29 +0200
commit85724171b302914bb8999b9df091fd4616a36eb7 (patch)
tree79d34bd28b08ba5eaf6b2305bcd701933ac4c7fc /fs/btrfs/dev-replace.c
parentd85512d54e15c3b8f17dbab44b3d41c1d956902a (diff)
downloadlinux-85724171b302914bb8999b9df091fd4616a36eb7.tar.gz
linux-85724171b302914bb8999b9df091fd4616a36eb7.tar.bz2
linux-85724171b302914bb8999b9df091fd4616a36eb7.zip
btrfs: fix the btrfs_get_global_root return value
btrfs_grab_root returns either the root or NULL, and the callers of btrfs_get_global_root expect it to return the same. But all the more recently added roots instead return an ERR_PTR, so fix this. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions