From 8057210befbffc5fe01202bfa4f231bad381a1e5 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 2 Dec 2010 12:20:57 -0800 Subject: [PATCH] b=24037 Include backing-dev.h header MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit With ldiskfs disabled we fail to include the backing-dev.h header which is required for the lustre_sb_info structure. Presumably, this was not as issue previously because it was included through one of the ldiskfs headers. The backing-dev.h header exists all the way back to 2.6.0 kernels so I have included it unconditionally in the linux/linux-fs.h header. This header is included as part of libcfs.h which is in turn included by lustre_disk.h. In file included from /home/behlendo/src/git/lustre-kdmu/lustre/ofd/ofd_internal.h:12, from /home/behlendo/src/git/lustre-kdmu/lustre/ofd/ofd_io.c:44: /home/behlendo/src/git/lustre-kdmu/lustre/include/lustre_disk.h:444: error: field ‘bdi’ has incomplete type Signed-off-by: Brian Behlendorf a=brian i=adilger i=yangsheng --- libcfs/include/libcfs/linux/linux-fs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libcfs/include/libcfs/linux/linux-fs.h b/libcfs/include/libcfs/linux/linux-fs.h index 501535e..9d42a6c 100644 --- a/libcfs/include/libcfs/linux/linux-fs.h +++ b/libcfs/include/libcfs/linux/linux-fs.h @@ -52,6 +52,7 @@ #include #include #include +#include typedef struct file cfs_file_t; typedef struct dentry cfs_dentry_t; -- 1.8.3.1