diff options
| author | Misono Tomohiro <[email protected]> | 2018-05-21 04:57:27 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-05-28 16:24:14 +0000 |
| commit | ad1e3d5672ddce03eaa811c3f8d728acefac9a19 (patch) | |
| tree | 3b23387d805cb1689ca6107a05012f340e9aa6b6 /fs/btrfs/tests/extent-buffer-tests.c | |
| parent | Btrfs: allow empty subvol= again (diff) | |
| download | kernel-ad1e3d5672ddce03eaa811c3f8d728acefac9a19.tar.gz kernel-ad1e3d5672ddce03eaa811c3f8d728acefac9a19.zip | |
btrfs: use error code returned by btrfs_read_fs_root_no_name in search ioctl
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() do.
Drop the error message as it would be confusing, the caller of ioctl
will likely interpret the error code and not look into the syslog.
Signed-off-by: Tomohiro Misono <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tests/extent-buffer-tests.c')
0 files changed, 0 insertions, 0 deletions
