]> git.hungrycats.org Git - linux/commit
[PATCH] Update Documentation/filesystems/Locking
authorAndrew Morton <akpm@osdl.org>
Sat, 12 Jun 2004 23:41:03 +0000 (16:41 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Sat, 12 Jun 2004 23:41:03 +0000 (16:41 -0700)
commit7f94e2a677d0630019883a132d60b55036ebc31c
treedef8383041f3f0c87d26358cac26cc49624108aa
parentaa1df6ca57369989eb4b860e3f182a7e07077069
[PATCH] Update Documentation/filesystems/Locking

From: Anton Altaparmakov <aia21@cam.ac.uk>

A filesystem's ->writepage() implementation nowadays must run either
redirty_page_for_writepage() or the combination of set_page_writeback()/
end_page_writeback().  Failure to do so leaves the page itself marked clean
but it is tagged as dirty in the radix tree (PAGECACHE_TAG_DIRTY).  This
incoherency can lead to all sorts of hard-to-debug problems in the
filesystem like having dirty inodes at umount and losing written data.

The patch updates Documentation/filesystems/Locking to reflect this
requirement.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Documentation/filesystems/Locking