aboutsummaryrefslogtreecommitdiffstats
path: root/fs/inotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/inotify.c')
-rw-r--r--fs/inotify.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/inotify.c b/fs/inotify.c
index 6a0ba2c858e6..cdfff9067149 100644
--- a/fs/inotify.c
+++ b/fs/inotify.c
@@ -1025,8 +1025,15 @@ static struct file_system_type inotify_fs_type = {
1025 */ 1025 */
1026static int __init inotify_setup(void) 1026static int __init inotify_setup(void)
1027{ 1027{
1028 register_filesystem(&inotify_fs_type); 1028 int ret;
1029
1030 ret = register_filesystem(&inotify_fs_type);
1031 if (unlikely(ret))
1032 panic("inotify: register_filesystem returned %d!\n", ret);
1033
1029 inotify_mnt = kern_mount(&inotify_fs_type); 1034 inotify_mnt = kern_mount(&inotify_fs_type);
1035 if (unlikely(PTR_ERR(inotify_mnt)))
1036 panic("inotify: kern_mount ret %ld!\n", PTR_ERR(inotify_mnt));
1030 1037
1031 inotify_max_queued_events = 16384; 1038 inotify_max_queued_events = 16384;
1032 inotify_max_user_instances = 128; 1039 inotify_max_user_instances = 128;