Whamcloud - gitweb
LU-13166 osd-ldiskfs: fix to allow to get system inode 21/37421/4
authorWang Shilong <wshilong@ddn.com>
Wed, 5 Feb 2020 12:33:38 +0000 (20:33 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 14 Feb 2020 05:51:13 +0000 (05:51 +0000)
Lustre need load ldiskfs system inode for quota accounting purpose,
so pass LDISKFS_IGET_SPECIAL flag to ldiskfs_iget(), otherwise,
support of centos8 quota will be broken.

Fixes: 8ab3aa50a14 ("LU-12355 ldiskfs: Added ext4_iget_flags to ext4_iget")
Change-Id: I3a30ec540444b149bc3398a62951d2826eb7b9ce
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/37421
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>

index 9ed1748..5752917 100644 (file)
@@ -883,7 +883,8 @@ static inline void i_projid_write(struct inode *inode, __u32 projid)
 # define osd_ldiskfs_iget(sb, ino) \
-               ldiskfs_iget((sb), (ino), LDISKFS_IGET_HANDLE)
+               ldiskfs_iget((sb), (ino), \
+                            LDISKFS_IGET_HANDLE | LDISKFS_IGET_SPECIAL)
 # define osd_ldiskfs_iget(sb, ino) ldiskfs_iget((sb), (ino))