Whamcloud - gitweb
Branch b1_8
authorjohann <johann>
Wed, 14 Oct 2009 20:48:45 +0000 (20:48 +0000)
committerjohann <johann>
Wed, 14 Oct 2009 20:48:45 +0000 (20:48 +0000)
b=18630

fix build issue when quotas are disabled.

lustre/lvfs/fsfilt_ext3.c

index 3f90f3e..1db2abb 100644 (file)
@@ -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,