Re: [PATCH] btrfs: Fix to use original error code of btrfs_read_fs_root_no_name()

2018-05-22 Thread David Sterba
On Mon, May 21, 2018 at 01:57:27PM +0900, Misono Tomohiro wrote: > btrfs_read_fs_root_no_name() may return ERR_PTR(-ENOENT) or > ERR_PTR(-ENOMEM) and therefore search_ioctl() and > btrfs_search_path_in_tree() should use PTR_ERR() instead of -ENOENT, > which all other callers of btrfs_read_fs_root_n

Re: [PATCH] btrfs: Fix to use original error code of btrfs_read_fs_root_no_name()

2018-05-20 Thread Qu Wenruo
On 2018年05月21日 12:57, Misono Tomohiro wrote: > btrfs_read_fs_root_no_name() may return ERR_PTR(-ENOENT) or > ERR_PTR(-ENOMEM) and therefore search_ioctl() and > btrfs_search_path_in_tree() should use PTR_ERR() instead of -ENOENT, > which all other callers of btrfs_read_fs_root_no_name() does. >

[PATCH] btrfs: Fix to use original error code of btrfs_read_fs_root_no_name()

2018-05-20 Thread Misono Tomohiro
btrfs_read_fs_root_no_name() may return ERR_PTR(-ENOENT) or ERR_PTR(-ENOMEM) and therefore search_ioctl() and btrfs_search_path_in_tree() should use PTR_ERR() instead of -ENOENT, which all other callers of btrfs_read_fs_root_no_name() does. Signed-off-by: Tomohiro Misono --- fs/btrfs/ioctl.c | 4