From: Daniel Moore Date: Thu, 5 May 2005 20:31:34 +0000 (-0700) Subject: [XFS] stop background sync from waiting for in-use inodes X-Git-Tag: upstream/snapshot3+hdmi~48071 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ba0815a4b0709ef5e7b481067573d10806bbe2c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [XFS] stop background sync from waiting for in-use inodes SGI Modid: xfs-linux:xfs-kern:191586a Signed-off-by: Daniel Moore Signed-off-by: Christoph Hellwig --- diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c index 76a8475..1e71a96 100644 --- a/fs/xfs/linux-2.6/xfs_aops.c +++ b/fs/xfs/linux-2.6/xfs_aops.c @@ -725,9 +725,12 @@ xfs_page_state_convert( __uint64_t end_offset; pgoff_t end_index, last_index, tlast; int len, err, i, cnt = 0, uptodate = 1; - int flags = startio ? 0 : BMAPI_TRYLOCK; + int flags; int page_dirty, delalloc = 0; + /* wait for other IO threads? */ + flags = (startio && wbc->sync_mode != WB_SYNC_NONE) ? 0 : BMAPI_TRYLOCK; + /* Is this page beyond the end of the file? */ offset = i_size_read(inode); end_index = offset >> PAGE_CACHE_SHIFT;