fat: Push mnt_want_write() outside of i_mutex
authorJan Kara <jack@suse.cz>
Tue, 12 Jun 2012 14:20:31 +0000 (16:20 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 30 Jul 2012 21:02:50 +0000 (01:02 +0400)
commite24f17da3560781e274699f066fb788ad52f4402
tree8523d7d7e6cc4d33d2cec4172fe055f104d8647d
parentc30dabfe5d10c5fd70d882e5afb8f59f2942b194
fat: Push mnt_want_write() outside of i_mutex

When mnt_want_write() starts to handle freezing it will get a full lock
semantics requiring proper lock ordering. So push mnt_want_write() call
outside of i_mutex as in other places.

CC: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fat/file.c