From: Brian Behlendorf Date: Thu, 2 Dec 2010 20:20:57 +0000 (-0800) Subject: b=24037 Include backing-dev.h header X-Git-Tag: 2.0.59.0~23 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=8057210befbffc5fe01202bfa4f231bad381a1e5;p=fs%2Flustre-release.git b=24037 Include backing-dev.h header 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 --- 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;