summaryrefslogtreecommitdiffstats
path: root/sys/fs/ext2fs/ext2_htree.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/ext2fs/ext2_htree.c')
-rw-r--r--sys/fs/ext2fs/ext2_htree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/ext2fs/ext2_htree.c b/sys/fs/ext2fs/ext2_htree.c
index 0b5d920..ff1e1a5 100644
--- a/sys/fs/ext2fs/ext2_htree.c
+++ b/sys/fs/ext2fs/ext2_htree.c
@@ -89,10 +89,12 @@ static int ext2_htree_writebuf(struct ext2fs_htree_lookup_info *info);
int
ext2_htree_has_idx(struct inode *ip)
{
+#ifdef EXT2FS_HTREE
if (EXT2_HAS_COMPAT_FEATURE(ip->i_e2fs, EXT2F_COMPAT_DIRHASHINDEX) &&
ip->i_flags & EXT4_INDEX)
return (1);
else
+#endif
return (0);
}
OpenPOWER on IntegriCloud