Skip to content

Commit

Permalink
[XFS] stop background sync from waiting for in-use inodes
Browse files Browse the repository at this point in the history
SGI Modid: xfs-linux:xfs-kern:191586a

Signed-off-by: Daniel Moore <dxm@sgi.com>
Signed-off-by: Christoph Hellwig <hch@sgi.com>
  • Loading branch information
Daniel Moore authored and Christoph Hellwig committed May 5, 2005
1 parent 3f24376 commit 3ba0815
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fs/xfs/linux-2.6/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3ba0815

Please sign in to comment.