- reiser4-re-add-page_count-check-to-reiser4_releasepage.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     reiser4: re-add page_count check to reiser4_releasepage
has been removed from the -mm tree.  Its filename was
     reiser4-re-add-page_count-check-to-reiser4_releasepage.patch

This patch was dropped because it was folded into reiser4.patch

------------------------------------------------------
Subject: reiser4: re-add page_count check to reiser4_releasepage
From: Alexaner Zarochentsev <zam@xxxxxxxxxxx>

re-add to reiser4_releasepage mistakenly removed page_count check.  reiser4
uses extra page reference to protect page from detaching from the jnode.

Signed-off-by: Alexander Zarochentsev <zam@xxxxxxxxxxx>
Cc: Hans Reiser <reiser@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/reiser4/as_ops.c |    5 +++++
 1 files changed, 5 insertions(+)

diff -puN fs/reiser4/as_ops.c~reiser4-re-add-page_count-check-to-reiser4_releasepage fs/reiser4/as_ops.c
--- a/fs/reiser4/as_ops.c~reiser4-re-add-page_count-check-to-reiser4_releasepage
+++ a/fs/reiser4/as_ops.c
@@ -292,6 +292,11 @@ int reiser4_releasepage(struct page *pag
 	if (PageDirty(page))
 		return 0;
 
+	/* extra page reference is used by reiser4 to protect
+	 * jnode<->page link from this ->releasepage(). */
+	if (page_count(page) > 3)
+		return 0;
+
 	/* releasable() needs jnode lock, because it looks at the jnode fields
 	 * and we need jload_lock here to avoid races with jload(). */
 	spin_lock_jnode(node);
_

Patches currently in -mm which might be from zam@xxxxxxxxxxx are

reiser4.patch
reiser4-re-add-page_count-check-to-reiser4_releasepage.patch
reiser4-restore-fibmap-ioctl-support-for-packed-files.patch
reiser4-format-subversion-numbers-heir-set-and-file-conversion-fix-readpages-cryptcompress.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux