]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
JFS: Fix multiple errors in metapage_releasepage
authorDave Kleikamp <shaggy@austin.ibm.com>
Wed, 24 May 2006 12:43:38 +0000 (07:43 -0500)
committerDave Kleikamp <shaggy@austin.ibm.com>
Wed, 24 May 2006 12:43:38 +0000 (07:43 -0500)
commitb964638ffd59b61c13f02b81e5118a6e573d91cd
tree118ab6ba3bceab3ab39d7d22070d03af2ace6f18
parent387e2b0439026aa738a9edca15a57e5c0bcb4dfc
JFS: Fix multiple errors in metapage_releasepage

It looks like metapage_releasepage was making in invalid assumption that
the releasepage method would not be called on a dirty page.  Instead of
issuing a warning and releasing the metapage, it should return 0, indicating
that the private data for the page cannot be released.

I also realized that metapage_releasepage had the return code all wrong.  If
it is successful in releasing the private data, it should return 1, otherwise
it needs to return 0.

Lastly, there is no need to call wait_on_page_writeback, since
try_to_release_page will not call us with a page in writback state.

Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
fs/jfs/jfs_metapage.c