]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fix XFS after clear_page_dirty() removal
authorDavid Chinner <dgc@sgi.com>
Wed, 20 Dec 2006 23:24:01 +0000 (10:24 +1100)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 21 Dec 2006 18:01:08 +0000 (10:01 -0800)
commite495b4430640aab72d2c6fe4b5eac8a2c7078208
treed2a0b5d60d2f3518e717038dd1eec5eaf4fab13b
parent94ab8f532761a2c347a9436f91a1c882ece8b9d3
[PATCH] Fix XFS after clear_page_dirty() removal

XFS appears to call clear_page_dirty to get the mapping tree dirty tag
set correctly at the same time the page dirty flag is cleared.  I note
that this can be done by set_page_writeback() if we clear the dirty flag
on the page first when we are writing back the entire page.

Hence it seems to me that the XFS call to clear_page_dirty() could
easily be substituted by clear_page_dirty_for_io() followed by a call to
set_page_writeback() to get the mapping tree tags set correctly after
the page has been marked clean.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/xfs/linux-2.6/xfs_aops.c