diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-03-26 04:37:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 11:56:55 -0500 |
commit | 353ab6e97b8f209dbecc9f650f1f84e3da2a7bb1 (patch) | |
tree | bffabd9a5a493ffd2b41dd825e71e848ca6ba6d7 /fs/super.c | |
parent | e655a250d5fc12b6dfe0d436180ba4a3bfffdc9f (diff) |
[PATCH] sem2mutex: fs/
Semaphore to mutex conversion.
The conversion was generated via scripts, and the result was validated
automatically via a script as well.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Eric Van Hensbergen <ericvh@ericvh.myip.org>
Cc: Robert Love <rml@tech9.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Neil Brown <neilb@cse.unsw.edu.au>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Dave Kleikamp <shaggy@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/super.c b/fs/super.c index 8743e9bbb297..a66f66bb8049 100644 --- a/fs/super.c +++ b/fs/super.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <linux/writeback.h> /* for the emergency remount stuff */ | 37 | #include <linux/writeback.h> /* for the emergency remount stuff */ |
38 | #include <linux/idr.h> | 38 | #include <linux/idr.h> |
39 | #include <linux/kobject.h> | 39 | #include <linux/kobject.h> |
40 | #include <linux/mutex.h> | ||
40 | #include <asm/uaccess.h> | 41 | #include <asm/uaccess.h> |
41 | 42 | ||
42 | 43 | ||
@@ -380,9 +381,9 @@ restart: | |||
380 | void sync_filesystems(int wait) | 381 | void sync_filesystems(int wait) |
381 | { | 382 | { |
382 | struct super_block *sb; | 383 | struct super_block *sb; |
383 | static DECLARE_MUTEX(mutex); | 384 | static DEFINE_MUTEX(mutex); |
384 | 385 | ||
385 | down(&mutex); /* Could be down_interruptible */ | 386 | mutex_lock(&mutex); /* Could be down_interruptible */ |
386 | spin_lock(&sb_lock); | 387 | spin_lock(&sb_lock); |
387 | list_for_each_entry(sb, &super_blocks, s_list) { | 388 | list_for_each_entry(sb, &super_blocks, s_list) { |
388 | if (!sb->s_op->sync_fs) | 389 | if (!sb->s_op->sync_fs) |
@@ -411,7 +412,7 @@ restart: | |||
411 | goto restart; | 412 | goto restart; |
412 | } | 413 | } |
413 | spin_unlock(&sb_lock); | 414 | spin_unlock(&sb_lock); |
414 | up(&mutex); | 415 | mutex_unlock(&mutex); |
415 | } | 416 | } |
416 | 417 | ||
417 | /** | 418 | /** |