X-Git-Url: https://bbs.cooldavid.org/git/?a=blobdiff_plain;f=fs%2Fjffs2%2Ffs.c;h=e896e67767eb9e10515f37a7608fd7bdcc2d330d;hb=67577927e8d7a1f4b09b4992df640eadc6aacb36;hp=2701b372da78eeb5f18054bc931a10c6d26ccaff;hpb=6fe4c590313133ebd5dadb769031489ff178ece1;p=net-next-2.6.git diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c index 2701b372da7..e896e67767e 100644 --- a/fs/jffs2/fs.c +++ b/fs/jffs2/fs.c @@ -21,7 +21,6 @@ #include #include #include -#include #include "nodelist.h" static int jffs2_flash_setup(struct jffs2_sb_info *c); @@ -391,7 +390,6 @@ int jffs2_remount_fs (struct super_block *sb, int *flags, char *data) This also catches the case where it was stopped and this is just a remount to restart it. Flush the writebuffer, if neccecary, else we loose it */ - lock_kernel(); if (!(sb->s_flags & MS_RDONLY)) { jffs2_stop_garbage_collect_thread(c); mutex_lock(&c->alloc_sem); @@ -403,8 +401,6 @@ int jffs2_remount_fs (struct super_block *sb, int *flags, char *data) jffs2_start_garbage_collect_thread(c); *flags |= MS_NOATIME; - - unlock_kernel(); return 0; }