Whamcloud - gitweb
LU-6142 mdc: include linux/idr.h for referenced code
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 16 Apr 2021 06:03:00 +0000 (00:03 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Jul 2021 03:04:26 +0000 (03:04 +0000)
Include the <linux/idr.h> header in files that references IDR
functionality.  Don't depend on its indirect inclusion elsewhere.

Lustre-change: https://review.whamcloud.com/43346
Lustre-commit: 3589a3141a4b9f94887b3ac5d6202233b06b8996

Test-Parameters: trivial
Fixes: 66172e3274ca ("LU-13238 ofd: add OFD access logs")
Fixes: d0423abc1adc ("LU-12506 changelog: support large number of MDT")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Icdd03e15d31eabc4a1363d1757fc4db7723ebbe5
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-on: https://review.whamcloud.com/44233
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/mdc/mdc_changelog.c
lustre/ofd/ofd_access_log.c

index ee11f6b..a850a11 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/poll.h>
 #include <linux/device.h>
 #include <linux/cdev.h>
+#include <linux/idr.h>
 
 #include <lustre_log.h>
 #include <uapi/linux/lustre/lustre_ioctl.h>
index 791d027..6ed1aa7 100644 (file)
@@ -2,6 +2,7 @@
 #include <linux/circ_buf.h>
 #include <linux/device.h>
 #include <linux/fs.h>
+#include <linux/idr.h>
 #include <linux/kernel.h>
 #include <linux/miscdevice.h>
 #include <linux/module.h>