aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 8a82342a8595..2f039f32031f 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -2464,6 +2464,10 @@ static int __init init_tmpfs(void)
2464{ 2464{
2465 int error; 2465 int error;
2466 2466
2467 error = bdi_init(&shmem_backing_dev_info);
2468 if (error)
2469 goto out4;
2470
2467 error = init_inodecache(); 2471 error = init_inodecache();
2468 if (error) 2472 if (error)
2469 goto out3; 2473 goto out3;
@@ -2488,6 +2492,8 @@ out1:
2488out2: 2492out2:
2489 destroy_inodecache(); 2493 destroy_inodecache();
2490out3: 2494out3:
2495 bdi_destroy(&shmem_backing_dev_info);
2496out4:
2491 shm_mnt = ERR_PTR(error); 2497 shm_mnt = ERR_PTR(error);
2492 return error; 2498 return error;
2493} 2499}