The initial sizes for dqblk.dqb_curspace should reflect the block size,
as that's the minimal filesize.

Signed-off-by: Daniel Rosenberg <dro...@google.com>
---
 mkfs/f2fs_format.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c
index f2840c8..b46bc15 100644
--- a/mkfs/f2fs_format.c
+++ b/mkfs/f2fs_format.c
@@ -1362,9 +1362,9 @@ static int f2fs_write_default_quota(int qtype, __le32 
raw_id)
        dqblk.dqb_bhardlimit = cpu_to_le64(0);
        dqblk.dqb_bsoftlimit = cpu_to_le64(0);
        if (c.lpf_ino)
-               dqblk.dqb_curspace = cpu_to_le64(8192);
+               dqblk.dqb_curspace = cpu_to_le64(F2FS_BLKSIZE * 2);
        else
-               dqblk.dqb_curspace = cpu_to_le64(4096);
+               dqblk.dqb_curspace = cpu_to_le64(F2FS_BLKSIZE);
        dqblk.dqb_btime = cpu_to_le64(0);
        dqblk.dqb_itime = cpu_to_le64(0);
 
-- 
2.43.0.rc0.421.g78406f8d94-goog



_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to