]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[PATCH] JFS: Fix multiple errors in metapage_releasepage
authorDave Kleikamp <shaggy@austin.ibm.com>
Wed, 7 Jun 2006 02:54:44 +0000 (22:54 -0400)
committerChris Wright <chrisw@sous-sol.org>
Thu, 22 Jun 2006 19:16:12 +0000 (12:16 -0700)
commitb558f9f2cd432f2c8797098f239dad284aba1334
treeb43cecee9bbe0fbe0864e0361ddaf0644b1242a9
parent9f631f4e9e409f76f8174e6c785056e9b2b89b42
[PATCH] 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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/jfs/jfs_metapage.c