From: Mikhail Pershin Date: Wed, 7 Sep 2011 06:26:31 +0000 (+0400) Subject: LU-653 i_version shouldn't be used for VBR X-Git-Tag: 2.1.0~2 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=1e9326917af52f3d01920411465476154b2807d0;p=fs%2Flustre-release.git LU-653 i_version shouldn't be used for VBR RHEL6 plus EXT4 combination cause i_version is to be used to store Lustre versions instead of i_fs_version. Meanwhile this field is used by ext4 internally and may be changed breaking Lustre recovery. Patch makes only i_fs_version to be used for versions. Change-Id: Idf7cd257aa2d288abce2a7c18c4d8b139bc9c5c6 Signed-off-by: Mikhail Pershin Reviewed-on: http://review.whamcloud.com/1342 Reviewed-by: Andreas Dilger Tested-by: Hudson Reviewed-by: Oleg Drokin Tested-by: Maloo Tested-by: Yu Jian --- diff --git a/lustre/lvfs/fsfilt_ext3.c b/lustre/lvfs/fsfilt_ext3.c index f0b91df..271f194 100644 --- a/lustre/lvfs/fsfilt_ext3.c +++ b/lustre/lvfs/fsfilt_ext3.c @@ -216,20 +216,12 @@ 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) - return inode->i_version; -#else return EXT3_I(inode)->i_fs_version; -#endif } static void set_i_version(struct inode *inode, __u64 new_version) { -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) && defined(HAVE_EXT4_LDISKFS) - inode->i_version = new_version; -#else (EXT3_I(inode))->i_fs_version = new_version; -#endif } /*