staging/lustre: ATTR_TIMES_SET is always defined, so don't check it
authorOleg Drokin <green@linuxhacker.ru>
Thu, 30 Jul 2015 22:28:02 +0000 (18:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jul 2015 23:01:59 +0000 (16:01 -0700)
Remove ATTR_TIMES_SET check as it's always present, move
the mask of times define close to where it's used.

Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/linux/lustre_compat25.h
drivers/staging/lustre/lustre/llite/llite_lib.c

index 1dcd78b9c5e5c12dc2e2347a5d72c1f398bc2e77..f16ba9c8b2143cfeaf7db9b4b1f5ad31bfa06058 100644 (file)
@@ -140,10 +140,4 @@ static inline int ll_quota_off(struct super_block *sb, int off, int remount)
 # define ext2_find_next_zero_bit  find_next_zero_bit_le
 #endif
 
-#ifdef ATTR_TIMES_SET
-# define TIMES_SET_FLAGS (ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET)
-#else
-# define TIMES_SET_FLAGS (ATTR_MTIME_SET | ATTR_ATIME_SET)
-#endif
-
 #endif /* _COMPAT25_H */
index ab4839cad93942a15310566f8f2de8cdbe357d0a..39f0b2a07aecaf796440a4a1986ce7a151b801f0 100644 (file)
@@ -1150,6 +1150,8 @@ void ll_clear_inode(struct inode *inode)
        lli->lli_has_smd = false;
 }
 
+#define TIMES_SET_FLAGS (ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET)
+
 static int ll_md_setattr(struct dentry *dentry, struct md_op_data *op_data,
                  struct md_open_data **mod)
 {