[PATCH] set_page_dirty() return value fixes
authorAndrew Morton <akpm@osdl.org>
Fri, 24 Mar 2006 11:18:11 +0000 (03:18 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Mar 2006 15:33:26 +0000 (07:33 -0800)
commit4741c9fd36b3bcadd37238321c469049da94a4b9
tree4b3031b04cdbf2d3c5a4fcc1965ed857f1cf0ce4
parentfa5a734e406b53761fcc5ee22366006f71112c2d
[PATCH] set_page_dirty() return value fixes

We need set_page_dirty() to return true if it actually transitioned the page
from a clean to dirty state.  This wasn't right in a couple of places.  Do a
kernel-wide audit, fix things up.

This leaves open the possibility of returning a negative errno from
set_page_dirty() sometime in the future.  But we don't do that at present.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/cris/arch-v32/drivers/cryptocop.c
drivers/block/rd.c
fs/buffer.c
include/linux/fs.h
mm/page-writeback.c