btrfs: Push mnt_want_write() outside of i_mutex
authorJan Kara <[email protected]>
Tue, 12 Jun 2012 14:20:32 +0000 (16:20 +0200)
committerAl Viro <[email protected]>
Mon, 30 Jul 2012 21:02:51 +0000 (01:02 +0400)
commite7848683ae7ded0a4a8964122a47da9104a98337
tree7dc006d60d73c1c37b74bc4127ecfe0209517230
parente24f17da3560781e274699f066fb788ad52f4402
btrfs: 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
consistently outside of i_mutex.

CC: Chris Mason <[email protected]>
CC: [email protected]
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Al Viro <[email protected]>
fs/btrfs/ioctl.c