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