reiserfs: convert j_flush_sem to mutex
authorJeff Mahoney <jeffm@suse.com>
Fri, 25 Jul 2008 08:46:39 +0000 (01:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:33 +0000 (10:53 -0700)
commitafe70259076fff0446001eaa1a287f615241a357
treed619c7f6235264a7b08aec16ba3563a686415079
parentf68215c4640a38d66429014e524a627bf572d26a
reiserfs: convert j_flush_sem to mutex

j_flush_sem is a semaphore but uses it as if it were a mutex.  This patch
converts it to a mutex.

[akpm@linux-foundation.org: fix mutex_trylock retval treatment]
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Cc: Matthew Wilcox <matthew@wil.cx>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Edward Shishkin <edward.shishkin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/journal.c
include/linux/reiserfs_fs_sb.h