From: girish Date: Fri, 19 Jun 2009 11:24:47 +0000 (+0000) Subject: b=19875 X-Git-Tag: v1_8_2_01~1^2~309 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3ac76302ad43043add9b699a70f4bb13d82a5e9f;p=fs%2Flustre-release.git b=19875 i=johann i=adilger use i_fs_version in sles11 --- diff --git a/lustre/lvfs/fsfilt_ext3.c b/lustre/lvfs/fsfilt_ext3.c index 0339733..4bffe85 100644 --- a/lustre/lvfs/fsfilt_ext3.c +++ b/lustre/lvfs/fsfilt_ext3.c @@ -174,7 +174,7 @@ static char *fsfilt_ext3_uuid(struct super_block *sb) static __u64 get_i_version(struct inode *inode) { -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) && defined(HAVE_EXT4_LDISKFS) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) && !defined(USE_I_FS_VERSION) return inode->i_version; #else return EXT3_I(inode)->i_fs_version; @@ -183,7 +183,7 @@ static __u64 get_i_version(struct inode *inode) static void set_i_version(struct inode *inode, __u64 new_version) { -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) && defined(HAVE_EXT4_LDISKFS) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) && !defined(USE_I_FS_VERSION) inode->i_version = new_version; #else (EXT3_I(inode))->i_fs_version = new_version;