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>
Showing
- fs/xfs/xfs_aops.c 18 additions, 0 deletionsfs/xfs/xfs_aops.c
- fs/xfs/xfs_file.c 7 additions, 3 deletionsfs/xfs/xfs_file.c
- fs/xfs/xfs_ioctl.c 52 additions, 3 deletionsfs/xfs/xfs_ioctl.c
- fs/xfs/xfs_ioctl32.c 12 additions, 0 deletionsfs/xfs/xfs_ioctl32.c
- fs/xfs/xfs_iomap.c 2 additions, 2 deletionsfs/xfs/xfs_iomap.c
- fs/xfs/xfs_mount.c 1 addition, 1 deletionfs/xfs/xfs_mount.c
- fs/xfs/xfs_mount.h 0 additions, 3 deletionsfs/xfs/xfs_mount.h
- fs/xfs/xfs_sync.c 1 addition, 1 deletionfs/xfs/xfs_sync.c
- fs/xfs/xfs_trans.c 14 additions, 3 deletionsfs/xfs/xfs_trans.c
- fs/xfs/xfs_trans.h 2 additions, 0 deletionsfs/xfs/xfs_trans.h
Loading
Please register or sign in to comment