From 87e16435c55b76647c6a5fd173a336cd282ed291 Mon Sep 17 00:00:00 2001 From: nikita Date: Tue, 22 Jul 2008 16:45:19 +0000 Subject: [PATCH] add ext3-xattr-no-update-ctime-2.6.22-vanilla.patch patch to 2.6.18-vanilla series, pending 16166 fix. --- ...ext3-xattr-no-update-ctime-2.6.22-vanilla.patch | 32 ++++++++++++++++++++++ .../series/ldiskfs-2.6.18-vanilla.series | 1 + 2 files changed, 33 insertions(+) create mode 100644 ldiskfs/kernel_patches/patches/ext3-xattr-no-update-ctime-2.6.22-vanilla.patch diff --git a/ldiskfs/kernel_patches/patches/ext3-xattr-no-update-ctime-2.6.22-vanilla.patch b/ldiskfs/kernel_patches/patches/ext3-xattr-no-update-ctime-2.6.22-vanilla.patch new file mode 100644 index 0000000..2fe2f47 --- /dev/null +++ b/ldiskfs/kernel_patches/patches/ext3-xattr-no-update-ctime-2.6.22-vanilla.patch @@ -0,0 +1,32 @@ +Index: linux-2.6.22.14/include/linux/ext3_fs.h +=================================================================== +--- linux-2.6.22.14.orig/include/linux/ext3_fs.h ++++ linux-2.6.22.14/include/linux/ext3_fs.h +@@ -923,6 +923,13 @@ struct mmp_struct { + #define EXT3_MMP_MIN_CHECK_INTERVAL 5 + + /* ++ * Indicates that ctime should not be updated in ext3_xattr_set_handle() ++ */ ++#ifndef XATTR_NO_CTIME ++#define XATTR_NO_CTIME 0x80 ++#endif ++ ++/* + * Function prototypes + */ + +Index: linux-2.6.22.14/fs/ext3/xattr.c +=================================================================== +--- linux-2.6.22.14.orig/fs/ext3/xattr.c ++++ linux-2.6.22.14/fs/ext3/xattr.c +@@ -1039,7 +1039,8 @@ ext3_xattr_set_handle(handle_t *handle, + } + if (!error) { + ext3_xattr_update_super_block(handle, inode->i_sb); +- inode->i_ctime = ext3_current_time(inode); ++ if (!(flags & XATTR_NO_CTIME)) ++ inode->i_ctime = ext3_current_time(inode); + error = ext3_mark_iloc_dirty(handle, inode, &is.iloc); + if (!value) + EXT3_I(inode)->i_state &= ~EXT3_STATE_NO_EXPAND; diff --git a/ldiskfs/kernel_patches/series/ldiskfs-2.6.18-vanilla.series b/ldiskfs/kernel_patches/series/ldiskfs-2.6.18-vanilla.series index 5a52d0e..3572a42 100644 --- a/ldiskfs/kernel_patches/series/ldiskfs-2.6.18-vanilla.series +++ b/ldiskfs/kernel_patches/series/ldiskfs-2.6.18-vanilla.series @@ -23,3 +23,4 @@ ext3-iam-2.6.18-vanilla.patch ext3-orphans-delay.patch ext3-lookup-dotdot-2.6.9.patch ext3-max-dir-size.patch +ext3-xattr-no-update-ctime-2.6.22-vanilla.patch -- 1.8.3.1