Fix reiserfs_file_release()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 4 Jul 2010 08:18:57 +0000 (12:18 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Aug 2010 20:47:27 +0000 (16:47 -0400)
commit0e4f6a791b1e8cfde75a74e2f885642ecb3fe9d8
tree3cb4d6590be13c4890a7d6d40b90a2517ccbe87a
parent918377b696bff7384923a1ef4bf0af7626cb9b68
Fix reiserfs_file_release()

a) count file openers correctly; i_count use was completely wrong
b) use new mutex for exclusion between final close/open/truncate,
to protect tailpacking logics.  i_mutex use was wrong and resulted
in deadlocks.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/reiserfs/file.c
fs/reiserfs/inode.c
fs/reiserfs/super.c
include/linux/reiserfs_fs_i.h