From 416111cb4c1b6497184a5c76800d0cc984328f29 Mon Sep 17 00:00:00 2001 From: johann Date: Wed, 14 Oct 2009 20:48:45 +0000 Subject: [PATCH] Branch b1_8 b=18630 fix build issue when quotas are disabled. --- lustre/lvfs/fsfilt_ext3.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lustre/lvfs/fsfilt_ext3.c b/lustre/lvfs/fsfilt_ext3.c index 3f90f3e..1db2abb 100644 --- a/lustre/lvfs/fsfilt_ext3.c +++ b/lustre/lvfs/fsfilt_ext3.c @@ -137,13 +137,6 @@ struct fsfilt_cb_data { #define ext3_inode_bitmap(sb,desc) le32_to_cpu((desc)->bg_inode_bitmap) #endif -#ifndef HAVE_EXT4_LDISKFS -static __u32 ext3_itable_unused_count(struct super_block *sb, - struct ext3_group_desc *bg) { - return le16_to_cpu(bg->bg_itable_unused); -} -#endif - static char *fsfilt_ext3_get_label(struct super_block *sb) { return EXT3_SB(sb)->s_es->s_volume_name; @@ -1729,6 +1722,11 @@ ext3_read_inode_bitmap(struct super_block *sb, unsigned long group) 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); +} #endif static inline struct inode *ext3_iget_inuse(struct super_block *sb, -- 1.8.3.1