]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging/lustre: use ATTR_OPEN directly, remove ATTR_RAW
authorOleg Drokin <green@linuxhacker.ru>
Thu, 30 Jul 2015 22:28:04 +0000 (18:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jul 2015 23:02:02 +0000 (16:02 -0700)
ATTR_RAW is unused.
No point in redefining ATTR_OPEN as ATTR_FROM_OPEN

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_patchless_compat.h
drivers/staging/lustre/lustre/mdc/mdc_lib.c

index 14562788e4e059eca40f57ee85fd74a5c9f41fa0..ebe8d68ed813f854126c3b21407ff3c7c187a37b 100644 (file)
@@ -60,18 +60,6 @@ truncate_complete_page(struct address_space *mapping, struct page *page)
        ll_delete_from_page_cache(page);
 }
 
-#ifdef ATTR_OPEN
-# define ATTR_FROM_OPEN ATTR_OPEN
-#else
-# ifndef ATTR_FROM_OPEN
-#  define ATTR_FROM_OPEN 0
-# endif
-#endif /* ATTR_OPEN */
-
-#ifndef ATTR_RAW
-#define ATTR_RAW 0
-#endif
-
 #ifndef ATTR_CTIME_SET
 /*
  * set ATTR_CTIME_SET to a high value to avoid any risk of collision with other
index d3234cb1ea22ae8190ec64fcfe246658c6f82f49..1a850ea2684945411a66fc46e38a272b3ccb2105 100644 (file)
@@ -286,7 +286,7 @@ static inline __u64 attr_pack(unsigned int ia_valid)
                sa_valid |= MDS_ATTR_KILL_SGID;
        if (ia_valid & ATTR_CTIME_SET)
                sa_valid |= MDS_ATTR_CTIME_SET;
-       if (ia_valid & ATTR_FROM_OPEN)
+       if (ia_valid & ATTR_OPEN)
                sa_valid |= MDS_ATTR_FROM_OPEN;
        if (ia_valid & ATTR_BLOCKS)
                sa_valid |= MDS_ATTR_BLOCKS;