aboutsummaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r--fs/block_dev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 6fe49b9349ea..f02b7bdd9864 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -457,9 +457,7 @@ static void init_once(void * foo, struct kmem_cache * cachep, unsigned long flag
457 struct bdev_inode *ei = (struct bdev_inode *) foo; 457 struct bdev_inode *ei = (struct bdev_inode *) foo;
458 struct block_device *bdev = &ei->bdev; 458 struct block_device *bdev = &ei->bdev;
459 459
460 if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) == 460 if (flags & SLAB_CTOR_CONSTRUCTOR) {
461 SLAB_CTOR_CONSTRUCTOR)
462 {
463 memset(bdev, 0, sizeof(*bdev)); 461 memset(bdev, 0, sizeof(*bdev));
464 mutex_init(&bdev->bd_mutex); 462 mutex_init(&bdev->bd_mutex);
465 sema_init(&bdev->bd_mount_sem, 1); 463 sema_init(&bdev->bd_mount_sem, 1);