X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=include%2Flinux%2Fswapops.h;h=d4c7db35e7081495cc556eb7b4dae17a6380e1b9;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=0cfc704d0565b60bacf620c4d326037f78b3f9cb;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/linux/swapops.h b/include/linux/swapops.h index 0cfc704d0..d4c7db35e 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)); } /*