Commit e56e17ea authored by Oleg Drokin's avatar Oleg Drokin Committed by Greg Kroah-Hartman

staging/lustre: use ATTR_OPEN directly, remove ATTR_RAW

ATTR_RAW is unused.
No point in redefining ATTR_OPEN as ATTR_FROM_OPEN
Signed-off-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b81f9b6d
...@@ -60,18 +60,6 @@ truncate_complete_page(struct address_space *mapping, struct page *page) ...@@ -60,18 +60,6 @@ truncate_complete_page(struct address_space *mapping, struct page *page)
ll_delete_from_page_cache(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 #ifndef ATTR_CTIME_SET
/* /*
* set ATTR_CTIME_SET to a high value to avoid any risk of collision with other * set ATTR_CTIME_SET to a high value to avoid any risk of collision with other
......
...@@ -286,7 +286,7 @@ static inline __u64 attr_pack(unsigned int ia_valid) ...@@ -286,7 +286,7 @@ static inline __u64 attr_pack(unsigned int ia_valid)
sa_valid |= MDS_ATTR_KILL_SGID; sa_valid |= MDS_ATTR_KILL_SGID;
if (ia_valid & ATTR_CTIME_SET) if (ia_valid & ATTR_CTIME_SET)
sa_valid |= MDS_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; sa_valid |= MDS_ATTR_FROM_OPEN;
if (ia_valid & ATTR_BLOCKS) if (ia_valid & ATTR_BLOCKS)
sa_valid |= MDS_ATTR_BLOCKS; sa_valid |= MDS_ATTR_BLOCKS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment