Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af0f4414 authored by Jan Kara's avatar Jan Kara
Browse files

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: default avatarJan Kara <jack@suse.cz>
parent d23c937b
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -817,7 +817,8 @@ xfs_write(
		xfs_iunlock(xip, iolock);
		xfs_iunlock(xip, iolock);
		if (need_i_mutex)
		if (need_i_mutex)
			mutex_unlock(&inode->i_mutex);
			mutex_unlock(&inode->i_mutex);
		error2 = sync_page_range(inode, mapping, pos, ret);
		error2 = filemap_write_and_wait_range(mapping, pos,
						      pos + ret - 1);
		if (!error)
		if (!error)
			error = error2;
			error = error2;
		if (need_i_mutex)
		if (need_i_mutex)