Skip to content

Commit

Permalink
[XFS] Check that a page has dirty buffers before finding it acceptabl…
Browse files Browse the repository at this point in the history
…e for

rewrite clustering. This prevents writing excessive amounts of clean data
when doing random rewrites of a cached file.

SGI-PV: 951193
SGI-Modid: xfs-linux-melb:xfs-kern:25531a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
  • Loading branch information
David Chinner authored and Nathan Scott committed Mar 22, 2006
1 parent 3758dee commit 2ddee84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/linux-2.6/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ xfs_is_delayed_page(
acceptable = (type == IOMAP_UNWRITTEN);
else if (buffer_delay(bh))
acceptable = (type == IOMAP_DELAY);
else if (buffer_mapped(bh))
else if (buffer_dirty(bh) && buffer_mapped(bh))
acceptable = (type == 0);
else
break;
Expand Down

0 comments on commit 2ddee84

Please sign in to comment.