Re: [PATCH 1/2] quota: Add mountpath based quota support

From: Christoph Hellwig
Date: Thu Feb 11 2021 - 11:48:34 EST


> + if (!mountpoint)
> + return -ENODEV;
> +
> + ret = user_path_at(AT_FDCWD, mountpoint,
> + LOOKUP_FOLLOW | LOOKUP_AUTOMOUNT, &mountpath);

user_path_at handles an empty path, although you'll get EFAULT instead.
Do we care about the -ENODEV here?

Otherwise this looks good:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>