Whamcloud - gitweb
LU-17943 osd-ldiskfs: initialize dquot before expanding inode size 73/55673/4
authorLi Dongyang <dongyangli@ddn.com>
Tue, 9 Jul 2024 12:49:20 +0000 (22:49 +1000)
committerOleg Drokin <green@whamcloud.com>
Thu, 12 Sep 2024 05:52:21 +0000 (05:52 +0000)
commit3fd57f81fddc604aa94bc7797cc211c7e393b3d0
tree9edff4b27636540ef5234bec907be1a40d109720
parentd858902aa888cad3e7dff5b9b15cad15aeda997d
LU-17943 osd-ldiskfs: initialize dquot before expanding inode size

Since upstream kernel v6.1-rc4
8994d11395f8 ext4: avoid unaccounted block allocation when expanding inode

If the quota is not initialized when trying to expand the inode size,
ext4/ldiskfs will just bail and return error.
Unfortunately this change made to some distro kernels like el8.10.

Change-Id: I874c86678c592a60c5954fcb2064150cf77e5634
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55673
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c