+# LC_HAVE_BDI_DEBUG_STATS
+#
+# Linux kernel v5.10 commit 2d146b924ec3c0873f06308d149684dc1105d9a3
+# backing-dev: no need to check return value of debugfs_create functions
+# backing_dev_info.debug_stats was remove.
+#
+AC_DEFUN([LC_SRC_HAVE_BDI_DEBUG_STATS], [
+ LB2_LINUX_TEST_SRC([bdi_has_debug_stats], [
+ #include <linux/backing-dev-defs.h>
+ ],[
+ struct backing_dev_info info;
+
+ info.debug_stats = NULL;
+ ],[-Werror])
+])
+AC_DEFUN([LC_HAVE_BDI_DEBUG_STATS], [
+ AC_MSG_CHECKING([if 'struct backing_dev_info' has 'debug_stats' field])
+ LB2_LINUX_TEST_RESULT([bdi_has_debug_stats], [
+ AC_DEFINE(HAVE_BDI_DEBUG_STATS, 1,
+ [backing_dev_info has debug_stats])
+ ])
+]) # LC_HAVE_BDI_DEBUG_STATS
+
+#