[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e896c7ba-defe-6448-5bf2-e7c6c952970d@kernel.org>
Date: Sun, 2 Apr 2023 11:16:31 +0800
From: Chao Yu <chao@...nel.org>
To: Jaegeuk Kim <jaegeuk@...nel.org>, Yangtao Li <frank.li@...o.com>
Cc: linux-f2fs-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] f2fs: fix to check quota inums
On 2023/3/7 4:59, Jaegeuk Kim wrote:
> On 02/23, Yangtao Li wrote:
>> +static inline bool f2fs_check_quota_inum(int type, unsigned long qf_inum)
>> +{
>> + switch (type) {
>> + case USRQUOTA:
>> + return qf_inum == 4;
>> + case GRPQUOTA:
>> + return qf_inum == 5;
>> + case PRJQUOTA:
>> + return qf_inum == 6;
>
> I don't want to make this dependency of the inode numbers.
Actually, mkfs.f2fs allocates qf_inum dynamically, above sanity check
may fail mount()...
Thanks,
Powered by blists - more mailing lists