[PATCH 1/1] Btrfs: Code Cleanup

2016-03-20 Thread Flex Liu
From: Flex Liu <f...@suse.com> In fs/btrfs/volumes.c:2328 if (seeding_dev) { sb->s_flags &= ~MS_RDONLY; ret = btrfs_prepare_sprout(root); BUG_ON(ret); /* -ENOMEM */ } the error code would be return from: fs_d

[PATCH 1/1] Btrfs: Code Cleanup

2016-03-20 Thread Flex Liu
From: Flex Liu In fs/btrfs/volumes.c:2328 if (seeding_dev) { sb->s_flags &= ~MS_RDONLY; ret = btrfs_prepare_sprout(root); BUG_ON(ret); /* -ENOMEM */ } the error code would be return from: fs_devs = kzalloc(sizeof(*