migration: fix writepage error
authorHugh Dickins <[email protected]>
Wed, 19 Nov 2008 23:36:36 +0000 (15:36 -0800)
committerLinus Torvalds <[email protected]>
Thu, 20 Nov 2008 02:49:58 +0000 (18:49 -0800)
commitbda8550deed96687f29992d711a88ea21cff4d26
tree41061a3259d2ed2e19ed4b9e53e41675eb60bd3f
parent966c8c12dc9e77f931e2281ba25d2f0244b06949
migration: fix writepage error

Page migration's writeout() has got understandably confused by the nasty
AOP_WRITEPAGE_ACTIVATE case: as in normal success, a writepage() error has
unlocked the page, so writeout() then needs to relock it.

Signed-off-by: Hugh Dickins <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: Christoph Lameter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/migrate.c