Whamcloud - gitweb
bbc8853c711684b9a9a511be8045fe9b05a83917
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / rhel6.3 / ext4-nocmtime-2.6.patch
1 Index: linux-stage/fs/ext4/ext4.h
2 ===================================================================
3 --- linux-stage.orig/fs/ext4/ext4.h
4 +++ linux-stage/fs/ext4/ext4.h
5 @@ -1213,6 +1213,9 @@ static inline struct ext4_inode_info *EX
6  
7  static inline struct timespec ext4_current_time(struct inode *inode)
8  {
9 +       if (IS_NOCMTIME(inode))
10 +               return inode->i_ctime;
11 +
12         return (inode->i_sb->s_time_gran < NSEC_PER_SEC) ?
13                 current_fs_time(inode->i_sb) : CURRENT_TIME_SEC;
14  }