All of lore.kernel.org
 help / color / mirror / Atom feed
* Is as_ops.c releasepage patch still needed?
@ 2006-08-21 18:49 Jonathan Briggs
  2006-08-29  6:01 ` Alexander Zarochentsev
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Briggs @ 2006-08-21 18:49 UTC (permalink / raw)
  To: reiserfs-list

[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]

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?


Index: linux-2.6-git/fs/reiser4/as_ops.c
===================================================================
--- linux-2.6-git.orig/fs/reiser4/as_ops.c
+++ linux-2.6-git/fs/reiser4/as_ops.c
@@ -350,6 +350,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);

-- 
Jonathan Briggs <jbriggs@esoft.com>
eSoft, Inc.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Is as_ops.c releasepage patch still needed?
  2006-08-21 18:49 Is as_ops.c releasepage patch still needed? Jonathan Briggs
@ 2006-08-29  6:01 ` Alexander Zarochentsev
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Zarochentsev @ 2006-08-29  6:01 UTC (permalink / raw)
  To: reiserfs-list; +Cc: Jonathan Briggs

Hi,

On 21 August 2006 22:49, Jonathan Briggs wrote:
> 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).

>
> 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
> ===================================================================
> --- linux-2.6-git.orig/fs/reiser4/as_ops.c
> +++ linux-2.6-git/fs/reiser4/as_ops.c
> @@ -350,6 +350,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);

-- 
Alex.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-08-29  6:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-21 18:49 Is as_ops.c releasepage patch still needed? Jonathan Briggs
2006-08-29  6:01 ` Alexander Zarochentsev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.