]> www.infradead.org Git - users/dwmw2/linux.git/commit
btrfs: streamline fsid checks in alloc_fs_devices
authorAnand Jain <anand.jain@oracle.com>
Wed, 24 May 2023 12:02:36 +0000 (20:02 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:28 +0000 (13:59 +0200)
commit19c4c49ca9d0eb14987386598e44a533a367f745
tree3473c5273cd1a1e487f37166f53259598a53325f
parent4693893bf8d01c37a8952a3ea2a1bdfeb4106277
btrfs: streamline fsid checks in alloc_fs_devices

We currently have redundant checks for the non-null value of fsid
simplify it.

And, no one is using alloc_fs_devices() with a NULL metadata_uuid
while fsid is not NULL, add an assert() to verify this condition.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c