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>
Sat, 28 Jan 2012 05:53:10 +0000 (11:23 +0530)
commit96150606e2fb82d242c9e4a414e4e922849f7bf7
treeefdb8a85b5838aa13e6c233ebec580c1f956be5d
parentf423fc627b05f47bc9305f9661630fce30f208f9
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