]> git.baikalelectronics.ru Git - kernel.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)
commit7edf0e8930736d72f353f1374ee2a46d99b07367
tree118ab6ba3bceab3ab39d7d22070d03af2ace6f18
parent63202e35ead037a370e86d353652a6bfcf0687a6
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