LB_LDISKFS_SYMVERS
LB_LDISKFS_RELEASE
- LB_LDISKFS_EXT_RELEASE
LB_LDISKFS_EXT_DIR
LB_LDISKFS_BUILD
LB_LDISKFS_DEFINE_OPTIONS
#
# LDISKFS_DEVEL is required because when using the ldiskfs-devel package the
-# ext3/4 source will be fully patched to ldiskfs. When building with the
+# ext4 source will be fully patched to ldiskfs. When building with the
# in-tree ldiskfs this patching this will occur after the configure step.
# We needed a way to determine if we should check the patched or unpatched
# source files.
])
#
-# LB_LDISKFS_EXT_RELEASE
-#
-# Determine if ext3 or ext4 sources should be used for ldiskfs.
-#
-AC_DEFUN([LB_LDISKFS_EXT_RELEASE],
-[
-AC_ARG_ENABLE([ext4],
- AC_HELP_STRING([--enable-ext4], [enable ldiskfs build using ext4]),
- [],
- [
- if test x$RHEL_KERNEL = xyes; then
- enable_ext4='yes'
- else
- # 2.6.22-2.6.26 ext4 available but unstable
- case x$LINUXRELEASE in
- x2.6.2[[0-6]]*)
- enable_ext4='no' ;;
- *)
- enable_ext4='yes' ;;
- esac
- fi
- ])
-
-if test x$enable_ext4 = xyes; then
- LDISKFS_BACKFS='ext4'
-else
- LDISKFS_BACKFS='ext3'
-fi
-
-AC_MSG_CHECKING([whether to use ext3 or ext4 source])
-AC_MSG_RESULT([$LDISKFS_BACKFS])
-AC_SUBST(LDISKFS_BACKFS)
-])
-
-#
# LB_LDISKFS_EXT_DIR
#
# Determine the location of the ext3/ext4 source code. It it required
[
# Kernel ext source located with devel headers
linux_src=$LINUX
-if test -e "$linux_src/fs/$LDISKFS_BACKFS/super.c"; then
- EXT_DIR=$linux_src/fs/$LDISKFS_BACKFS
+if test -e "$linux_src/fs/ext4/super.c"; then
+ EXT_DIR=$linux_src/fs/ext4
else
# Kernel ext source provided by kernel-debuginfo-common package
linux_src=$(ls -1d /usr/src/debug/*/linux-$LINUXRELEASE \
2>/dev/null | tail -1)
- if test -e "$linux_src/fs/$LDISKFS_BACKFS/super.c"; then
- EXT_DIR=$linux_src/fs/$LDISKFS_BACKFS
+ if test -e "$linux_src/fs/ext4/super.c"; then
+ EXT_DIR=$linux_src/fs/ext4
else
EXT_DIR=
fi
fi
-AC_MSG_CHECKING([$LDISKFS_BACKFS source directory])
+AC_MSG_CHECKING([ext4 source directory])
AC_MSG_RESULT([$EXT_DIR])
AC_SUBST(EXT_DIR)
])
else
LB_CHECK_FILE([$EXT_DIR/dir.c], [], [
enable_ldiskfs_build='no'
- AC_MSG_WARN([$LDISKFS_BACKFS must exist for ldiskfs build])])
+ AC_MSG_WARN([ext4 must exist for ldiskfs build])])
LB_CHECK_FILE([$EXT_DIR/file.c], [], [
enable_ldiskfs_build='no'
- AC_MSG_WARN([$LDISKFS_BACKFS must exist for ldiskfs build])])
+ AC_MSG_WARN([ext4 must exist for ldiskfs build])])
LB_CHECK_FILE([$EXT_DIR/inode.c], [], [
enable_ldiskfs_build='no'
- AC_MSG_WARN([$LDISKFS_BACKFS must exist for ldiskfs build])])
+ AC_MSG_WARN([ext4 must exist for ldiskfs build])])
LB_CHECK_FILE([$EXT_DIR/super.c], [], [
enable_ldiskfs_build='no'
- AC_MSG_WARN([$LDISKFS_BACKFS must exist for ldiskfs build])])
+ AC_MSG_WARN([ext4 must exist for ldiskfs build])])
fi
if test x$enable_ldiskfs_build = xno; then
AC_MSG_WARN([
-Disabling server because complete $LDISKFS_BACKFS source does not exist.
+Disabling server because complete ext4 source does not exist.
If you are building using kernel-devel packages and require ldiskfs
server support then ensure that the matching kernel-debuginfo-common
AC_DEFINE(HAVE_LDISKFS_OSD, 1, Enable ldiskfs osd)
with_ldiskfs_pdo=no
-if test $LDISKFS_BACKFS = 'ext4'; then
- AC_DEFINE(HAVE_EXT4_LDISKFS, 1, [build ext4 based ldiskfs])
- case $LINUXRELEASE in
- 2.6.32*)
- if test x$RHEL_KERNEL = xyes; then
- with_ldiskfs_pdo=yes
- AC_DEFINE(HAVE_LDISKFS_PDO, 1, [have ldiskfs PDO patch])
- fi
- if test x$SUSE_KERNEL = xyes; then
- with_ldiskfs_pdo=yes
- AC_DEFINE(HAVE_LDISKFS_PDO, 1, [have ldiskfs PDO patch])
- fi
- ;;
- esac
-fi
-
+case $LINUXRELEASE in
+2.6.32*)
+ if test x$RHEL_KERNEL = xyes; then
+ with_ldiskfs_pdo=yes
+ AC_DEFINE(HAVE_LDISKFS_PDO, 1, [have ldiskfs PDO patch])
+ fi
+ if test x$SUSE_KERNEL = xyes; then
+ with_ldiskfs_pdo=yes
+ AC_DEFINE(HAVE_LDISKFS_PDO, 1, [have ldiskfs PDO patch])
+ fi
+ ;;
+esac
LB_LDISKFS_JBD2_JOURNAL_CALLBACK_SET
AC_DEFINE(CONFIG_LDISKFS_FS_XATTR, 1,
fi
AM_CONDITIONAL(USE_QUILT, test x$QUILT != xno)
-AM_CONDITIONAL(USE_EXT4, test x$enable_ext4 = xyes)
if test x$enable_server$enable_dist = xyesno ; then
-LB_LDISKFS_EXT_RELEASE
LB_LDISKFS_EXT_DIR
LB_LDISKFS_EXT_SOURCE
LB_LDISKFS_DEFINE_OPTIONS
-
-BACKFS=$LDISKFS_BACKFS
-AC_SUBST(BACKFS)
-BACKFSU=${BACKFS/ext/EXT}
-AC_SUBST(BACKFSU) # We need a Upper string
fi
AM_CONDITIONAL(LDISKFS_PDO, test x$with_ldiskfs_pdo = xyes)
MODULES := ldiskfs
# copy makefile over to not break patches
-backfs_extra := $(wildcard @LINUX@/fs/@BACKFS@/Makefile)
+backfs_extra := $(wildcard @LINUX@/fs/ext4/Makefile)
backfs_headers := $(wildcard @EXT_DIR@/*.h)
-linux_headers := $(wildcard @LINUX@/include/linux/@BACKFS@*.h)
+linux_headers := $(wildcard @LINUX@/include/linux/ext4*.h)
linux_new_headers := dynlocks.h
@LDISKFS_PDO_TRUE@linux_new_headers += htree_lock.h
-trace_headers := $(wildcard @LINUX@/include/trace/events/@BACKFS@*.h)
+trace_headers := $(wildcard @LINUX@/include/trace/events/ext4*.h)
backfs_sources := $(filter-out %.mod.c,$(wildcard @EXT_DIR@/*.c))
@LDISKFS_PDO_TRUE@ext4_new_sources += htree_lock.c
ext4_new_headers :=
-new_sources := $(@BACKFS@_new_sources)
-new_headers := $(@BACKFS@_new_headers)
+new_sources := $(ext4_new_sources)
+new_headers := $(ext4_new_headers)
ldiskfs_patched_sources := $(notdir $(backfs_sources) $(backfs_headers)) $(new_sources) $(new_headers)
ldiskfs_sources := $(ldiskfs_patched_sources)
modulefs_DATA = ldiskfs$(KMODEXT)
-ldiskfs_linux_headers := $(addprefix linux/,$(subst @BACKFS@,ldiskfs,$(notdir $(linux_headers))))
+ldiskfs_linux_headers := $(addprefix linux/,$(subst ext4,ldiskfs,$(notdir $(linux_headers))))
$(filter %.c,$(ldiskfs_patched_sources)): sources $(ldiskfs_linux_headers) $(filter %.h,$(ldiskfs_patched_sources))
ldiskfs_sed_flags = \
- -e "s/dx_hash_info/@BACKFS@_dx_hash_info/g" \
- -e "s/dir_private_info/@BACKFS@_dir_private_info/g" \
- -e "s/DX_HASH/@BACKFSU@_DX_HASH/g" \
- -e "s/\<reserve_window/@BACKFS@_reserve_window/g" \
- -e "s/\<rsv_window_add/@BACKFS@_rsv_window_add/g" \
- -e "s/@BACKFSU@/LDISKFS/g" -e "s/@BACKFS@/ldiskfs/g"
+ -e "s/dx_hash_info/ext4_dx_hash_info/g" \
+ -e "s/DX_HASH/EXT4_DX_HASH/g" \
+ -e "s/EXT4/LDISKFS/g" -e "s/ext4/ldiskfs/g"
-%.c: linux-stage/fs/@BACKFS@/%.c
+%.c: linux-stage/fs/ext4/%.c
sed $(strip $(ldiskfs_sed_flags)) $< > $@
-%.h: linux-stage/fs/@BACKFS@/%.h
+%.h: linux-stage/fs/ext4/%.h
sed $(strip $(ldiskfs_sed_flags)) $< > $@
-linux/ldiskfs%.h: linux-stage/include/linux/@BACKFS@%.h
+linux/ldiskfs%.h: linux-stage/include/linux/ext4%.h
sed $(strip $(ldiskfs_sed_flags)) $< > $@
series := @top_srcdir@/kernel_patches/series/ldiskfs-$(LDISKFS_SERIES)
sources: $(backfs_sources) $(backfs_headers) $(linux_headers) $(series) $(trace_headers)
rm -rf linux-stage linux sources trace $(ldiskfs_SOURCES)
- mkdir -p linux-stage/fs/@BACKFS@ linux-stage/include/linux \
+ mkdir -p linux-stage/fs/ext4 linux-stage/include/linux \
linux-stage/include/trace/events
- cp $(backfs_sources) $(backfs_headers) $(backfs_extra) linux-stage/fs/@BACKFS@
+ cp $(backfs_sources) $(backfs_headers) $(backfs_extra) linux-stage/fs/ext4
if test -n "$(linux_headers)" ; then \
cp $(linux_headers) linux-stage/include/linux; \
fi
ln -s ../$(series) linux-stage/series
cd linux-stage && quilt push -a -q
else
- @echo -n "Applying @BACKFS@ patches:"
+ @echo -n "Applying ext4 patches:"
@cd linux-stage && for i in $$(<../$(series)) ; do \
echo -n " $$i" ; \
patch -s -p1 < ../$(patches)/$$i || exit 1 ; \
@echo
endif
mkdir -p linux trace/events
- @echo -n "Replacing '@BACKFS@' with 'ldiskfs':"
+ @echo -n "Replacing 'ext4' with 'ldiskfs':"
for i in $(notdir $(backfs_headers) $(backfs_sources)) $(new_sources) ; do \
echo -n " $$i" ; \
sed $(strip $(ldiskfs_sed_flags)) \
- linux-stage/fs/@BACKFS@/$$i > $$i ; \
+ linux-stage/fs/ext4/$$i > $$i ; \
done
- for i in $(subst @BACKFS@,,$(notdir $(backfs_headers))) ; do \
- if test -f "@BACKFS@$$i" ; then \
- echo -n " @BACKFS@$$i" ; \
- mv @BACKFS@$$i ldiskfs$$i ; \
+ for i in $(subst ext4,,$(notdir $(backfs_headers))) ; do \
+ if test -f "ext4$$i" ; then \
+ echo -n " ext4$$i" ; \
+ mv ext4$$i ldiskfs$$i ; \
fi ; \
done
- for i in $(subst @BACKFS@,,$(notdir $(linux_headers) $(new_headers))) ; do \
- echo -n " @BACKFS@$$i" ; \
+ for i in $(subst ext4,,$(notdir $(linux_headers) $(new_headers))) ; do \
+ echo -n " ext4$$i" ; \
sed $(strip $(ldiskfs_sed_flags)) \
- linux-stage/include/linux/@BACKFS@$$i \
+ linux-stage/include/linux/ext4$$i \
> linux/ldiskfs$$i ; \
done
- for i in $(subst @BACKFS@,,$(notdir $(trace_headers))) ; do \
- echo -n " @BACKFS@$$i"; \
+ for i in $(subst ext4,,$(notdir $(trace_headers))) ; do \
+ echo -n " ext4$$i"; \
sed $(strip $(ldiskfs_sed_flags)) \
- linux-stage/include/trace/events/@BACKFS@$$i \
+ linux-stage/include/trace/events/ext4$$i \
> trace/events/ldiskfs$$i ; \
done
for i in $(notdir $(linux_new_headers)) ; do \
endif #SERVER
ldiskfs_sed_flags = \
- -e "s/dx_hash_info/ext3_dx_hash_info/g" \
- -e "s/dir_private_info/ext3_dir_private_info/g" \
- -e "s/DX_HASH/EXT3_DX_HASH/g" \
- -e "s/reserve_window/ext3_reserve_window/g" \
- -e "s/rsv_window_add/ext3_rsv_window_add/g" \
-e "s/EXT3/LDISKFS/g" -e "s/ext3/ldiskfs/g" \
- -e "s/EXT4/LDISKFS/g" -e "s/ext4/ldiskfs/g" \
- -e "s/HAVE_LDISKFS_LDISKFS/HAVE_EXT4_LDISKFS/g"
+ -e "s/EXT4/LDISKFS/g" -e "s/ext4/ldiskfs/g"
fsfilt_ldiskfs.c: fsfilt_ext3.c
sed $(strip $(ldiskfs_sed_flags)) $< > $@
- if grep -q '^#define\(.*\)HAVE_EXT4_LDISKFS' @LDISKFS_DIR@/config.h ; then \
- sed -i -e "/DEBUG_SUBSYSTEM\(.*\)S_FILTER/a\#define HAVE_EXT4_LDISKFS 1" $@ ;\
- fi
+
fsfilt_ldiskfs_quota.h: fsfilt_ext3_quota.h
sed $(strip $(ldiskfs_sed_flags)) $< > $@
#ifdef HAVE_LINUX_EXPORTFS_H
#include <linux/exportfs.h>
#endif
-#ifdef HAVE_EXT4_LDISKFS
#include <ext4/ext4.h>
#include <ext4/ext4_jbd2.h>
-#else
-#include <linux/jbd.h>
-#include <linux/ext3_fs.h>
-#include <linux/ext3_jbd.h>
-#endif
#include <linux/version.h>
#include <linux/bitops.h>
#include <linux/quota.h>
#include <linux/lustre_compat25.h>
#include <linux/lprocfs_status.h>
-#ifdef HAVE_EXT4_LDISKFS
#include <ext4/ext4_extents.h>
-#else
-#include <linux/ext3_extents.h>
-#endif
#include "lustre_quota_fmt.h"
#define ext3_mb_discard_inode_preallocations(inode) \
ext3_discard_preallocations(inode)
-#ifdef HAVE_EXT4_LDISKFS
#define fsfilt_log_start_commit(journal, tid) jbd2_log_start_commit(journal, tid)
#define fsfilt_log_wait_commit(journal, tid) jbd2_log_wait_commit(journal, tid)
-#else
-#define fsfilt_log_start_commit(journal, tid) log_start_commit(journal, tid)
-#define fsfilt_log_wait_commit(journal, tid) log_wait_commit(journal, tid)
-#define ext_pblock(ex) le32_to_cpu((ex)->ee_start)
-#define ext3_ext_store_pblock(ex, pblock) ((ex)->ee_start = cpu_to_le32(pblock))
-#define ext3_inode_bitmap(sb,desc) le32_to_cpu((desc)->bg_inode_bitmap)
-#endif
#ifdef HAVE_EXT4_JOURNAL_CALLBACK_ADD
# define journal_callback ext4_journal_cb_entry
nblocks += 3;
/* no break */
case FSFILT_OP_CREATE: {
-#if defined(EXT3_EXTENTS_FL) && defined(EXT3_INDEX_FL) && !defined(HAVE_EXT4_LDISKFS)
- static int warned;
- if (!warned) {
- if (!test_opt(inode->i_sb, EXTENTS)) {
- warned = 1;
- } else if (((EXT3_I(inode)->i_flags &
- cpu_to_le32(EXT3_EXTENTS_FL | EXT3_INDEX_FL)) ==
- cpu_to_le32(EXT3_EXTENTS_FL | EXT3_INDEX_FL))) {
- CWARN("extent-mapped directory found with "
- "ext3-based ldiskfs - contact "
- "http://bugs.whamcloud.com/\n");
- warned = 1;
- }
- }
-#endif
/* no break */
}
case FSFILT_OP_MKDIR:
*(int *)arg |= EXT3_I(inode)->i_flags & EXT3_EXTENTS_FL;
}
-#ifdef HAVE_EXT4_LDISKFS
/* ext4_ioctl does not have a inode argument */
if (inode->i_fop->unlocked_ioctl)
rc = inode->i_fop->unlocked_ioctl(file, cmd, arg);
-#else
- if (inode->i_fop->ioctl)
- rc = inode->i_fop->ioctl(inode, file, cmd, arg);
-#endif
else
RETURN(-ENOTTY);
# define fsfilt_up_truncate_sem(inode) up(&LDISKFS_I(inode)->truncate_sem);
# define fsfilt_down_truncate_sem(inode) down(&LDISKFS_I(inode)->truncate_sem);
#else
-# ifdef HAVE_EXT4_LDISKFS
-# define fsfilt_up_truncate_sem(inode) do{ }while(0)
-# define fsfilt_down_truncate_sem(inode) do{ }while(0)
-# else
-# define fsfilt_up_truncate_sem(inode) mutex_unlock(&EXT3_I(inode)->truncate_mutex)
-# define fsfilt_down_truncate_sem(inode) mutex_lock(&EXT3_I(inode)->truncate_mutex)
-# endif
+# define fsfilt_up_truncate_sem(inode) do{ }while(0)
+# define fsfilt_down_truncate_sem(inode) do{ }while(0)
#endif
#ifndef EXT_ASSERT
#ifdef EXT3_EXT_HAS_NO_TREE
/* for kernels 2.6.18 and later */
-#ifdef HAVE_EXT4_LDISKFS
#define EXT_GENERATION(inode) (EXT4_I(inode)->i_ext_generation)
-#else
-#define EXT_GENERATION(inode) ext_generation(inode)
-#endif
#define ext3_ext_base inode
#define ext3_ext_base2inode(inode) (inode)
#define EXT_DEPTH(inode) ext_depth(inode)
return EXT_REPEAT;
}
-#if defined(HAVE_EXT4_LDISKFS)
/* In 2.6.32 kernel, ext4_ext_walk_space()'s callback func is not
* protected by i_data_sem as whole. so we patch it to store
* generation to path and now verify the tree hasn't changed */
ext3_journal_stop(handle);
return EXT_REPEAT;
}
-#endif
count = cex->ec_len;
pblock = new_blocks(handle, base, path, cex->ec_block, &count, &err);
BUG_ON(le32_to_cpu(nex.ee_block) != cex->ec_block);
out:
-#if defined(HAVE_EXT4_LDISKFS)
up_write((&EXT4_I(inode)->i_data_sem));
-#endif
ext3_journal_stop(handle);
map:
if (err >= 0) {
RETURN(rc);
}
-#ifndef HAVE_EXT4_LDISKFS
-static inline struct ext3_group_desc *
-get_group_desc(struct super_block *sb, int group, struct buffer_head **bh)
-{
- unsigned long desc_block, desc;
- struct ext3_group_desc *gdp;
-
- desc_block = group / EXT3_DESC_PER_BLOCK(sb);
- desc = group % EXT3_DESC_PER_BLOCK(sb);
- gdp = (struct ext3_group_desc *)
- EXT3_SB(sb)->s_group_desc[desc_block]->b_data;
-
- return gdp + desc;
-}
-
-static inline struct buffer_head *
-ext3_read_inode_bitmap(struct super_block *sb, unsigned long group)
-{
- struct ext3_group_desc *desc;
- struct buffer_head *bh;
-
- desc = get_group_desc(sb, group, NULL);
- bh = sb_bread(sb, ext3_inode_bitmap(sb, desc));
- return bh;
-}
-
-static __u32 ext3_itable_unused_count(struct super_block *sb,
- struct ext3_group_desc *bg) {
- return le16_to_cpu(bg->bg_itable_unused);
-}
-#else
-#define get_group_desc ext3_get_group_desc
-#endif
-
struct qchk_ctxt {
cfs_hlist_head_t qckt_hash[NR_DQHASH]; /* quotacheck hash */
cfs_list_t qckt_list; /* quotacheck list */
if (uninit_feat) {
struct ext3_group_desc *desc;
- desc = get_group_desc(sb, group, NULL);
+ desc = ext3_get_group_desc(sb, group, NULL);
if (!desc)
GOTO(out, -EIO);
/* we don't really need to take the group lock here,
* but it may be useful if one day we support online
* quotacheck */
-#ifdef HAVE_EXT4_LDISKFS
ext4_lock_group(sb, group);
-#else
- spin_lock(sb_bgl_lock(sbi, group));
-#endif
if (desc->bg_flags & cpu_to_le16(EXT3_BG_INODE_UNINIT)) {
/* no inode in use in this group, just skip it */
-#ifdef HAVE_EXT4_LDISKFS
ext3_unlock_group(sb, group);
-#else
- spin_unlock(sb_bgl_lock(sbi, group));
-#endif
continue;
}
used_count -= ext3_itable_unused_count(sb, desc);
-#ifdef HAVE_EXT4_LDISKFS
ext3_unlock_group(sb, group);
-#else
- spin_unlock(sb_bgl_lock(sbi, group));
-#endif
}
ino = group * sbi->s_inodes_per_group + 1;
ino = i + group * sbi->s_inodes_per_group;
if (ino < sbi->s_first_ino)
continue;
-#if defined(HAVE_EXT4_LDISKFS) || !defined(HAVE_READ_INODE_IN_SBOPS)
inode = ext3_iget(sb, ino);
-#else
- inode = iget(sb, ino);
-#endif
if (!inode || IS_ERR(inode))
continue;
#define DEBUG_SUBSYSTEM S_MDS
#include <linux/module.h>
-#ifdef HAVE_EXT4_LDISKFS
#include <ldiskfs/ldiskfs_jbd2.h>
-#else
-#include <linux/jbd.h>
-#endif
#include <obd.h>
#include <obd_class.h>
#include <lustre_ver.h>
#include <lustre_disk.h>
#include <lustre_fid.h>
-#ifdef HAVE_EXT4_LDISKFS
#include <ldiskfs/ldiskfs.h>
-#else
-#include <linux/ldiskfs_fs.h>
-#endif
#include <lustre_mds.h>
#include <lustre/lustre_idl.h>
#include <lustre_disk.h> /* for changelogs */
#define DEBUG_SUBSYSTEM S_MDS
#include <linux/module.h>
-#ifdef HAVE_EXT4_LDISKFS
#include <ldiskfs/ldiskfs_jbd2.h>
-#else
-#include <linux/jbd.h>
-#endif
#include <obd.h>
#include <obd_class.h>
#include <lustre_ver.h>
#include <obd_support.h>
#include <lprocfs_status.h>
-#ifdef HAVE_EXT4_LDISKFS
#include <ldiskfs/ldiskfs.h>
-#else
-#include <linux/ldiskfs_fs.h>
-#endif
#include <lustre_mds.h>
#include <lustre/lustre_idl.h>
#include <lustre_fid.h>
#define DEBUG_SUBSYSTEM S_MDS
#include <linux/module.h>
-#ifdef HAVE_EXT4_LDISKFS
#include <ldiskfs/ldiskfs_jbd2.h>
-#else
-#include <linux/jbd.h>
-#endif
#include <obd.h>
#include <obd_class.h>
#include <lustre_ver.h>
#include <obd_support.h>
#include <lprocfs_status.h>
-#ifdef HAVE_EXT4_LDISKFS
#include <ldiskfs/ldiskfs.h>
-#else
-#include <linux/ldiskfs_fs.h>
-#endif
#include <lustre_mds.h>
#include <lustre/lustre_idl.h>
#define DEBUG_SUBSYSTEM S_MDS
#include <linux/module.h>
-#ifdef HAVE_EXT4_LDISKFS
#include <ldiskfs/ldiskfs_jbd2.h>
-#else
-#include <linux/jbd.h>
-#endif
#include <obd.h>
#include <obd_class.h>
#include <lustre_ver.h>
#include <obd_support.h>
#include <lprocfs_status.h>
-#ifdef HAVE_EXT4_LDISKFS
#include <ldiskfs/ldiskfs.h>
-#else
-#include <linux/ldiskfs_fs.h>
-#endif
#include <lustre_mds.h>
#include <lustre/lustre_idl.h>
if (is_e2fsprogs_feature_supp("-O dir_nlink") == 0)
append_unique(anchor, ",", "dir_nlink", NULL, maxbuflen);
-#ifdef HAVE_EXT4_LDISKFS
/* The following options are only valid for ext4-based ldiskfs.
* If --backfstype=ext3 is specified, do not enable them. */
if (mop->mo_ldd.ldd_mount_type == LDD_MT_EXT3)
}
}
/* Don't add any more "-O" options here, see last comment above */
-#endif
}
/**