Whamcloud - gitweb
LU-14577 ldiskfs: support Ubuntu 20.04 kernel 5.4.0-1007 87/43187/2
authorJian Yu <yujian@whamcloud.com>
Thu, 1 Apr 2021 01:50:31 +0000 (18:50 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 10 Apr 2021 17:40:56 +0000 (17:40 +0000)
While applying 5.4.0-66-ubuntu20.series ldiskfs patches
to kernel 5.4.0-1007, there is a conflict in
ext4_update_dx_flag() in ubuntu2004/ext4-pdirop.patch.
It turns out the ext4_update_dx_flag() codes in kernel
5.4.0-1007 are the same with those in kernel version
smaller than 5.4.0-66. So, 5.4.0-42-ubuntu20.series works.

This patch fixes lustre-build-ldiskfs.m4 to detect
5.4.0-42-ubuntu20.series for kernel 5.4.0-1007.

Test-Parameters: trivial

Change-Id: I3cd932b8ae2d7c7f4f900b8b18647a4252d100b2
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/43187
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
config/lustre-build-ldiskfs.m4

index dd05fcc..67e3b41 100644 (file)
@@ -89,8 +89,8 @@ AS_IF([test x$RHEL_KERNEL = xyes], [
                                AC_MSG_WARN([Failed to determine Kernel patch level. Assume latest.])
                                LDISKFS_SERIES="5.4.0-66-ubuntu20.series"
                        ],
+                       [test $KPLEV -eq 1007], [LDISKFS_SERIES="5.4.0-42-ubuntu20.series"],
                        [test $KPLEV -ge 66], [LDISKFS_SERIES="5.4.0-66-ubuntu20.series"],
-                       [test $KPLEV -ge 26], [LDISKFS_SERIES="5.4.0-42-ubuntu20.series"],
                        [LDISKFS_SERIES="5.4.0-42-ubuntu20.series"]
                )
        ],