Is as_ops.c releasepage patch still needed?
The following patch was posted to the Reiser4 list August 3 by zam. Is it still needed? It solved many problems for me, making my systems able to actually complete full Beagle indexing.
But I have not seen this patch show up in the last two mm kernel releases. Did something else fix it or is this patch still needed?
fs/reiser4/as_ops.c +5 -0
@@ -350,6 +350,11 @@ int reiser4_releasepage(struct page *pagif (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);
Signature · 2 lines
Jonathan Briggs <[email protected]> eSoft, Inc.
Hi,
Quoted 3 lines · Jonathan Briggs
The following patch was posted to the Reiser4 list August 3 by zam. Is it still needed? It solved many problems for me, making my systems able to actually complete full Beagle indexing.
the patch submitted already and will be included into the next -mm kernel (after 2.6.18-rc4-mm3).
Quoted 21 lines
But I have not seen this patch show up in the last two mm kernel releases. Did something else fix it or is this patch still needed?
Index:
linux-2.6-git/fs/reiser4/as_ops.c
===================================================================fs/reiser4/as_ops.c +5
-0@@ -350,6 +350,11 @@ int reiser4_releasepage(struct page *pagif (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_lockhere to avoid races withjload(). */spin_lock_jnode(node);
Signature · 1 line
Alex.