xfs: Convert to new freezing code
commitd9457dc056249913a7abe8b71dc09e427e590e35
authorJan Kara <jack@suse.cz>
Tue, 12 Jun 2012 14:20:39 +0000 (12 16:20 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 31 Jul 2012 05:45:48 +0000 (31 09:45 +0400)
tree8f0c6681d4c5802a6f5a124111b9d3958f0b281b
parent8e8ad8a57c75f3bda2d03a4c4396a9a7024ad275
xfs: Convert to new freezing code

Generic code now blocks all writers from standard write paths. So we add
blocking of all writers coming from ioctl (we get a protection of ioctl against
racing remount read-only as a bonus) and convert xfs_file_aio_write() to a
non-racy freeze protection. We also keep freeze protection on transaction
start to block internal filesystem writes such as removal of preallocated
blocks.

CC: Ben Myers <bpm@sgi.com>
CC: Alex Elder <elder@kernel.org>
CC: xfs@oss.sgi.com
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/xfs/xfs_aops.c
fs/xfs/xfs_file.c
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_ioctl32.c
fs/xfs/xfs_iomap.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h
fs/xfs/xfs_sync.c
fs/xfs/xfs_trans.c
fs/xfs/xfs_trans.h