Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2010-07-20 14:12:19 +0200
committerJan Kara <jack@suse.cz>2010-07-20 14:12:19 +0200
commit2767e616891e82ff7a6a243bafa54fb37bd200c7 (patch)
treef45c809364d494f65e9339097997a3057514ba5b
parent6c26f38b5cec197dde43fd31bc6826cf6e1e352d (diff)
- patches.fixes/novfs-bdi-init.diff: novfs: backing device inforpm-2.6.32.13-0.5
initialization (bnc#623472). suse-commit: aa9b752eb291a58b9f94c701107052de55ef9573
-rw-r--r--fs/novfs/inode.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/novfs/inode.c b/fs/novfs/inode.c
index 2bc9cc09abc9..19e481c1cba5 100644
--- a/fs/novfs/inode.c
+++ b/fs/novfs/inode.c
@@ -3980,6 +3980,17 @@ int __init init_novfs(void)
inHAX = 0;
inHAXTime = get_nanosecond_time();
+ retCode = bdi_init(&novfs_backing_dev_info);
+
+ if(!retCode)
+ retCode = bdi_register(&novfs_backing_dev_info, NULL, "novfs-map");
+ if (retCode) {
+ bdi_destroy(&novfs_backing_dev_info);
+ goto bdi_fail;
+ }
+
+
+
retCode = novfs_proc_init();
novfs_profile_init();
@@ -3995,6 +4006,8 @@ int __init init_novfs(void)
novfs_scope_exit();
}
}
+
+bdi_fail:
return (retCode);
}
@@ -4010,6 +4023,8 @@ void __exit exit_novfs(void)
kfree(novfs_current_mnt);
novfs_current_mnt = NULL;
}
+
+ bdi_destroy(&novfs_backing_dev_info);
}
int novfs_lock_inode_cache(struct inode *i)