X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=fs%2Fsuper.c;h=a66f66bb804979a62cf6233473bdeae191884410;hb=45af7a0f2ebad1304cab956e15f0b37318226fcd;hp=8743e9bbb297e939563d5bd3ea8e7de9c2ae74ef;hpb=0c50527379496bb7a662f181d0baf0bf2c7a88a6;p=linux-2.6-omap-h63xx.git diff --git a/fs/super.c b/fs/super.c index 8743e9bbb29..a66f66bb804 100644 --- a/fs/super.c +++ b/fs/super.c @@ -37,6 +37,7 @@ #include /* for the emergency remount stuff */ #include #include +#include #include @@ -380,9 +381,9 @@ restart: void sync_filesystems(int wait) { struct super_block *sb; - static DECLARE_MUTEX(mutex); + static DEFINE_MUTEX(mutex); - down(&mutex); /* Could be down_interruptible */ + mutex_lock(&mutex); /* Could be down_interruptible */ spin_lock(&sb_lock); list_for_each_entry(sb, &super_blocks, s_list) { if (!sb->s_op->sync_fs) @@ -411,7 +412,7 @@ restart: goto restart; } spin_unlock(&sb_lock); - up(&mutex); + mutex_unlock(&mutex); } /**