]> git.karo-electronics.de Git - karo-tx-linux.git/commit
logfs: update page reference count for pined pages
authorPrasad Joshi <prasadjoshi.linux@gmail.com>
Sat, 26 Nov 2011 05:30:47 +0000 (11:00 +0530)
committerPrasad Joshi <prasadjoshi.linux@gmail.com>
Tue, 29 Nov 2011 16:19:00 +0000 (21:49 +0530)
commit21f3eb832ba8902a29746a602015410b0b471622
tree032ab7fefb3957b6b49588b97a7e76d032d7c2d7
parent011a85aca1c0e56b344df6be77401b837e721fd9
logfs: update page reference count for pined pages

LogFS sets PG_private flag to indicate a pined page. We assumed that
marking a page as private is enough to ensure its existence. But
instead it is necessary to hold a reference count to the page.

The change resolves the following BUG

BUG: Bad page state in process flush-253:16  pfn:6a6d0
page flags: 0x100000000000808(uptodate|private)

Suggested-and-Acked-by: Joern Engel <joern@logfs.org>
Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
fs/logfs/readwrite.c
fs/logfs/segment.c