Re: [f2fs-dev] [PATCH v2] fs: forbid invalid project ID

2021-07-01 Thread Wang Shilong
On Tue, Jun 29, 2021 at 6:34 AM Dave Chinner wrote: > > On Mon, Jun 28, 2021 at 08:38:01AM -0400, Wang Shilong wrote: > > fileattr_set_prepare() should check if project ID > > is valid, otherwise dqget() will return NULL for > > such project ID quota. > > > > Signed-off-by: Wang Shilong > > --- >

Re: [f2fs-dev] [PATCH v2] fs: forbid invalid project ID

2021-06-28 Thread Dave Chinner
On Mon, Jun 28, 2021 at 08:38:01AM -0400, Wang Shilong wrote: > fileattr_set_prepare() should check if project ID > is valid, otherwise dqget() will return NULL for > such project ID quota. > > Signed-off-by: Wang Shilong > --- > v1->v2: try to fix in the VFS > --- > fs/ioctl.c | 3 +++ > 1 file

[f2fs-dev] [PATCH v2] fs: forbid invalid project ID

2021-06-28 Thread Wang Shilong
fileattr_set_prepare() should check if project ID is valid, otherwise dqget() will return NULL for such project ID quota. Signed-off-by: Wang Shilong --- v1->v2: try to fix in the VFS --- fs/ioctl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/ioctl.c b/fs/ioctl.c index 1e2204fa9963