Whamcloud - gitweb
b=24037 Include backing-dev.h header
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 2 Dec 2010 20:20:57 +0000 (12:20 -0800)
committerVitaly Fertman <vitaly.fertman@oracle.com>
Wed, 15 Dec 2010 02:25:02 +0000 (05:25 +0300)
commit8057210befbffc5fe01202bfa4f231bad381a1e5
tree1e5a489b9b5c9432817ad2538c39acddfaecb5e3
parentdec83d661bf118d12013436a510ede0b8599796f
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 <behlendorf1@llnl.gov>
a=brian
i=adilger
i=yangsheng
libcfs/include/libcfs/linux/linux-fs.h