Re: [PATCH] ceph: clean up error return in ceph_parse_param

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 11, 2019 at 6:37 PM Jeff Layton <jlayton@xxxxxxxxxx> wrote:
>
> Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
> ---
>  fs/ceph/super.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Ilya, I'm planning to just squash this into the mount API conversion
> patch, unless you have objections.
>
> diff --git a/fs/ceph/super.c b/fs/ceph/super.c
> index 5ccaec686eda..2710f9a4a372 100644
> --- a/fs/ceph/super.c
> +++ b/fs/ceph/super.c
> @@ -298,7 +298,7 @@ static int ceph_parse_param(struct fs_context *fc, struct fs_parameter *param)
>                 else if (mode == ceph_recover_session_clean)
>                         fsopt->flags |= CEPH_MOUNT_OPT_CLEANRECOVER;
>                 else
> -                       return -EINVAL;
> +                       goto invalid_value;
>                 break;
>         case Opt_wsize:
>                 if (result.uint_32 < (int)PAGE_SIZE || result.uint_32 > CEPH_MAX_WRITE_SIZE)

No objections, we want the error message.

Thanks,

                Ilya



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Ceph Dev]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux