Whamcloud - gitweb
b=22769 improve error message for dx_probe
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / ext4-xattr-no-update-ctime-rhel5.patch
1 Index: linux-2.6.18.i386/fs/ext4/ext4.h
2 ===================================================================
3 --- linux-2.6.18.i386.orig/fs/ext4/ext4.h
4 +++ linux-2.6.18.i386/fs/ext4/ext4.h
5 @@ -995,6 +995,13 @@ struct mmp_struct {
6  extern struct proc_dir_entry *proc_root_ext4;
7  
8  /*
9 + * Indicates that ctime should not be updated in ext4_xattr_set_handle()
10 + */
11 +#ifndef XATTR_NO_CTIME
12 +#define XATTR_NO_CTIME 0x80
13 +#endif
14 +
15 +/*
16   * Function prototypes
17   */
18  
19 Index: linux-2.6.18.i386/fs/ext4/xattr.c
20 ===================================================================
21 --- linux-2.6.18.i386.orig/fs/ext4/xattr.c
22 +++ linux-2.6.18.i386/fs/ext4/xattr.c
23 @@ -1026,7 +1026,8 @@ ext4_xattr_set_handle(handle_t *handle, 
24         }
25         if (!error) {
26                 ext4_xattr_update_super_block(handle, inode->i_sb);
27 -               inode->i_ctime = ext4_current_time(inode);
28 +               if (!(flags & XATTR_NO_CTIME))
29 +                       inode->i_ctime = ext4_current_time(inode);
30                 if (!value)
31                         EXT4_I(inode)->i_state &= ~EXT4_STATE_NO_EXPAND;
32                 error = ext4_mark_iloc_dirty(handle, inode, &is.iloc);