[PATCH 3/3] fs: super: remove unneeded dev mask

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



dev is always less than (1 << MINORBITS), therefore we don't need
this masking.

Signed-off-by: Heiner Kallweit <hkallweit1@xxxxxxxxx>
---
 fs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/super.c b/fs/super.c
index 37de8f5..583a541 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -894,7 +894,7 @@ int get_anon_bdev(dev_t *p)
 	else if (dev < 0)
 		return dev;
 
-	*p = MKDEV(0, dev & MINORMASK);
+	*p = MKDEV(0, dev);
 	return 0;
 }
 EXPORT_SYMBOL(get_anon_bdev);
-- 
2.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux