diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_aops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c index 76a84758073a..1e71a9633d8f 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( | |||
725 | __uint64_t end_offset; | 725 | __uint64_t end_offset; |
726 | pgoff_t end_index, last_index, tlast; | 726 | pgoff_t end_index, last_index, tlast; |
727 | int len, err, i, cnt = 0, uptodate = 1; | 727 | int len, err, i, cnt = 0, uptodate = 1; |
728 | int flags = startio ? 0 : BMAPI_TRYLOCK; | 728 | int flags; |
729 | int page_dirty, delalloc = 0; | 729 | int page_dirty, delalloc = 0; |
730 | 730 | ||
731 | /* wait for other IO threads? */ | ||
732 | flags = (startio && wbc->sync_mode != WB_SYNC_NONE) ? 0 : BMAPI_TRYLOCK; | ||
733 | |||
731 | /* Is this page beyond the end of the file? */ | 734 | /* Is this page beyond the end of the file? */ |
732 | offset = i_size_read(inode); | 735 | offset = i_size_read(inode); |
733 | end_index = offset >> PAGE_CACHE_SHIFT; | 736 | end_index = offset >> PAGE_CACHE_SHIFT; |