]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
btrfs: return original error code when failing from option parsing
authorChengguang Xu <cgxu519@gmx.com>
Wed, 9 May 2018 13:08:23 +0000 (21:08 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:30 +0000 (18:07 +0200)
commit891f41cb27cf5036e88053bb0ef688f98fcc945b
treec72e4ba3b46850464df32b65c1f7e4ff0ec15ac6
parent6fcf6e2bffb6cfe26f05795f4fba4e6bb6aa84bf
btrfs: return original error code when failing from option parsing

It's not good to overwrite -ENOMEM using -EINVAL when failing from mount
option parsing, so just return original error code.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c