aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2007-10-17 02:25:46 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:42:45 -0400
commite0bf68ddec4f4f90e5871404be4f1854c17f3120 (patch)
tree36203a3558cbe26d698bed18be69b3822fb5eef2 /mm/shmem.c
parentdc62a30e274d003a4d08fb888f1520add4b21373 (diff)
mm: bdi init hooks
provide BDI constructor/destructor hooks [akpm@linux-foundation.org: compile fix] Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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}