xfs: implement iomap based buffered write path
Convert XFS to use the new iomap based multipage write path. This involves implementing the ->iomap_begin and ->iomap_end methods, and switching the buffered file write, page_mkwrite and xfs_iozero paths to the new iomap helpers. With this change __xfs_get_blocks will never be used for buffered writes, and the code handling them can be removed. Based on earlier code from Dave Chinner. Signed-off-by:Christoph Hellwig <hch@lst.de> Reviewed-by:
Bob Peterson <rpeterso@redhat.com> Signed-off-by:
Dave Chinner <david@fromorbit.com>
Showing
- fs/xfs/Kconfig 1 addition, 0 deletionsfs/xfs/Kconfig
- fs/xfs/xfs_aops.c 0 additions, 212 deletionsfs/xfs/xfs_aops.c
- fs/xfs/xfs_file.c 30 additions, 41 deletionsfs/xfs/xfs_file.c
- fs/xfs/xfs_iomap.c 144 additions, 0 deletionsfs/xfs/xfs_iomap.c
- fs/xfs/xfs_iomap.h 4 additions, 1 deletionfs/xfs/xfs_iomap.h
- fs/xfs/xfs_iops.c 5 additions, 4 deletionsfs/xfs/xfs_iops.c
- fs/xfs/xfs_trace.h 3 additions, 0 deletionsfs/xfs/xfs_trace.h
Please register or sign in to comment