diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2007-10-17 02:25:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:42:45 -0400 |
commit | e0bf68ddec4f4f90e5871404be4f1854c17f3120 (patch) | |
tree | 36203a3558cbe26d698bed18be69b3822fb5eef2 /fs/ramfs/inode.c | |
parent | dc62a30e274d003a4d08fb888f1520add4b21373 (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 'fs/ramfs/inode.c')
-rw-r--r-- | fs/ramfs/inode.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index ef2b46d099ff..8428d5b2711d 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c | |||
@@ -223,7 +223,17 @@ module_exit(exit_ramfs_fs) | |||
223 | 223 | ||
224 | int __init init_rootfs(void) | 224 | int __init init_rootfs(void) |
225 | { | 225 | { |
226 | return register_filesystem(&rootfs_fs_type); | 226 | int err; |
227 | |||
228 | err = bdi_init(&ramfs_backing_dev_info); | ||
229 | if (err) | ||
230 | return err; | ||
231 | |||
232 | err = register_filesystem(&rootfs_fs_type); | ||
233 | if (err) | ||
234 | bdi_destroy(&ramfs_backing_dev_info); | ||
235 | |||
236 | return err; | ||
227 | } | 237 | } |
228 | 238 | ||
229 | MODULE_LICENSE("GPL"); | 239 | MODULE_LICENSE("GPL"); |