summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/swapops.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/swapops.h b/include/linux/swapops.h
index 0cfc704d0565..d4c7db35e708 100644
--- a/include/linux/swapops.h
+++ b/include/linux/swapops.h
@@ -30,8 +30,7 @@ static inline swp_entry_t swp_entry(unsigned long type, pgoff_t offset)
*/
static inline unsigned swp_type(swp_entry_t entry)
{
- return (entry.val >> SWP_TYPE_SHIFT(entry)) &
- ((1 << MAX_SWAPFILES_SHIFT) - 1);
+ return (entry.val >> SWP_TYPE_SHIFT(entry));
}
/*