Skip to content

Commit af0f441

Browse files
committed
xfs: Convert sync_page_range() to simple filemap_write_and_wait_range()
Christoph Hellwig says that it is enough for XFS to call filemap_write_and_wait_range() instead of sync_page_range() because we do all the metadata syncing when forcing the log. CC: Felix Blyakher <felixb@sgi.com> CC: xfs@oss.sgi.com CC: Christoph Hellwig <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz>
1 parent d23c937 commit af0f441

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎fs/xfs/linux-2.6/xfs_lrw.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,8 @@ xfs_write(
817817
xfs_iunlock(xip, iolock);
818818
if (need_i_mutex)
819819
mutex_unlock(&inode->i_mutex);
820-
error2 = sync_page_range(inode, mapping, pos, ret);
820+
error2 = filemap_write_and_wait_range(mapping, pos,
821+
pos + ret - 1);
821822
if (!error)
822823
error = error2;
823824
if (need_i_mutex)

0 commit comments

Comments
 (0)