https://github.com/torvalds/linux
Revision b964638ffd59b61c13f02b81e5118a6e573d91cd authored by Dave Kleikamp on 24 May 2006, 12:43:38 UTC, committed by Dave Kleikamp on 24 May 2006, 12:43:38 UTC
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>
1 parent 387e2b0
History
Tip revision: b964638ffd59b61c13f02b81e5118a6e573d91cd authored by Dave Kleikamp on 24 May 2006, 12:43:38 UTC
JFS: Fix multiple errors in metapage_releasepage
Tip revision: b964638
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 462 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.4 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 68.5 KB
Makefile -rw-r--r-- 43.7 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top