login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
1
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Neil Brown
Subject:
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
Date: Wednesday, December 1, 2010 - 4:01 pm
On Wed, 1 Dec 2010 14:43:14 -0800 Andrew Morton <akpm@linux-foundation.org> wrote:
quoted text
> On Thu, 2 Dec 2010 08:29:13 +1100 > Neil Brown <neilb@suse.de> wrote: > > > > > > > > > However, while reading Documentation/filesystems/vfs.txt (in order to > > > > add documentation for freepage) I was surprised to read that the > > > > ->releasepage() is itself supposed to be allowed to actually remove the > > > > page from the address space if it so desires. > > > > > > That doesn't sound right. It came from Neil in 2006. > > > > > > Neil, what were you thinking there? Did you find such a ->releasepage()? > > > > Nope, no idea, sorry. > > > > No releasepage functions do anything like that, and no call sites suggest it > > could be a possibility. Quite the reverse - they are likely to remove the > > page from the mapping without checking that it is still in the mapping. > > > > So that sentence should be deleted. > > This?
Perfect, thanks. NeilBrown
quoted text
> > From: Andrew Morton <akpm@linux-foundation.org> > > ->releasepage() does not remove the page from the mapping. > > Cc: Neil Brown <neilb@suse.de> > Cc: Trond Myklebust <Trond.Myklebust@netapp.com> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org> > --- > > Documentation/filesystems/vfs.txt | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff -puN Documentation/filesystems/vfs.txt~documentation-filesystems-vfstxt-fix-repeasepage-description Documentation/filesystems/vfs.txt > --- a/Documentation/filesystems/vfs.txt~documentation-filesystems-vfstxt-fix-repeasepage-description > +++ a/Documentation/filesystems/vfs.txt > @@ -660,11 +660,10 @@ struct address_space_operations { > releasepage: releasepage is called on PagePrivate pages to indicate > that the page should be freed if possible. ->releasepage > should remove any private data from the page and clear the > - PagePrivate flag. It may also remove the page from the > - address_space. If this fails for some reason, it may indicate > - failure with a 0 return value. > - This is used in two distinct though related cases. The first > - is when the VM finds a clean page with no active users and > + PagePrivate flag. If releasepage() fails for some reason, it must > + indicate failure with a 0 return value. > + releasepage() is used in two distinct though related cases. The > + first is when the VM finds a clean page with no active users and > wants to make it a free page. If ->releasepage succeeds, the > page will be removed from the address_space and become free. > > _
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/3] NFS: Ensure we use the correct cookie in nfs_r ...
, Trond Myklebust
, (Tue Nov 30, 8:47 pm)
[PATCH 2/3] NFS: lock the readdir page while it is in use
, Trond Myklebust
, (Tue Nov 30, 8:47 pm)
[PATCH 3/3] NFS: Fix a memory leak in nfs_readdir
, Trond Myklebust
, (Tue Nov 30, 8:47 pm)
Re: [PATCH 2/3] NFS: lock the readdir page while it is in use
, Linus Torvalds
, (Tue Nov 30, 9:10 pm)
Re: [PATCH 2/3] NFS: lock the readdir page while it is in use
, Trond Myklebust
, (Tue Nov 30, 9:29 pm)
Re: [PATCH 2/3] NFS: lock the readdir page while it is in use
, Linus Torvalds
, (Tue Nov 30, 10:06 pm)
Re: [PATCH 2/3] NFS: lock the readdir page while it is in use
, Rik van Riel
, (Wed Dec 1, 6:14 am)
Re: [PATCH 2/3] NFS: lock the readdir page while it is in use
, Trond Myklebust
, (Wed Dec 1, 7:49 am)
Re: [PATCH 2/3] NFS: lock the readdir page while it is in use
, Trond Myklebust
, (Wed Dec 1, 7:55 am)
Re: [PATCH 1/3] NFS: Ensure we use the correct cookie in n ...
, Nick Bowler
, (Wed Dec 1, 8:04 am)
[PATCH v2 0/3] Fix more NFS readdir regressions
, Trond Myklebust
, (Wed Dec 1, 8:36 am)
[PATCH v2 1/3] NFS: Ensure we use the correct cookie in nf ...
, Trond Myklebust
, (Wed Dec 1, 8:36 am)
[PATCH v2 2/3] NFS: lock the readdir page while it is in use
, Trond Myklebust
, (Wed Dec 1, 8:36 am)
[PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Trond Myklebust
, (Wed Dec 1, 8:36 am)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Linus Torvalds
, (Wed Dec 1, 9:17 am)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Rik van Riel
, (Wed Dec 1, 9:35 am)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Benny Halevy
, (Wed Dec 1, 9:45 am)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Linus Torvalds
, (Wed Dec 1, 9:47 am)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Rik van Riel
, (Wed Dec 1, 10:02 am)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Trond Myklebust
, (Wed Dec 1, 10:58 am)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Miklos Szeredi
, (Wed Dec 1, 11:29 am)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Trond Myklebust
, (Wed Dec 1, 11:54 am)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Hugh Dickins
, (Wed Dec 1, 12:23 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Linus Torvalds
, (Wed Dec 1, 12:47 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Linus Torvalds
, (Wed Dec 1, 12:52 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Trond Myklebust
, (Wed Dec 1, 1:05 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Trond Myklebust
, (Wed Dec 1, 1:10 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Linus Torvalds
, (Wed Dec 1, 1:18 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Hugh Dickins
, (Wed Dec 1, 1:31 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Andrew Morton
, (Wed Dec 1, 1:33 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Andrew Morton
, (Wed Dec 1, 1:39 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Hugh Dickins
, (Wed Dec 1, 2:02 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Hugh Dickins
, (Wed Dec 1, 2:15 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Neil Brown
, (Wed Dec 1, 2:29 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Andrew Morton
, (Wed Dec 1, 2:38 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Trond Myklebust
, (Wed Dec 1, 2:51 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Andrew Morton
, (Wed Dec 1, 3:13 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Linus Torvalds
, (Wed Dec 1, 3:24 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Andrew Morton
, (Wed Dec 1, 3:38 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Andrew Morton
, (Wed Dec 1, 3:43 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Hugh Dickins
, (Wed Dec 1, 3:43 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Trond Myklebust
, (Wed Dec 1, 3:47 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Neil Brown
, (Wed Dec 1, 4:01 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Trond Myklebust
, (Wed Dec 1, 4:21 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Linus Torvalds
, (Wed Dec 1, 4:31 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Andrew Morton
, (Wed Dec 1, 4:36 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Trond Myklebust
, (Wed Dec 1, 4:43 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Andrew Morton
, (Wed Dec 1, 4:46 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Trond Myklebust
, (Wed Dec 1, 4:56 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Linus Torvalds
, (Wed Dec 1, 6:05 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Andrew Morton
, (Wed Dec 1, 6:22 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Linus Torvalds
, (Wed Dec 1, 6:42 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Andrew Morton
, (Wed Dec 1, 7:05 pm)
[PATCH v3 0/3] Fix more NFS readdir regressions
, Trond Myklebust
, (Wed Dec 1, 8:08 pm)
[PATCH v3 1/3] NFS: Ensure we use the correct cookie in nf ...
, Trond Myklebust
, (Wed Dec 1, 8:08 pm)
[PATCH v3 2/3] Call the filesystem back whenever a page is ...
, Trond Myklebust
, (Wed Dec 1, 8:08 pm)
[PATCH v3 3/3] NFS: Fix a memory leak in nfs_readdir
, Trond Myklebust
, (Wed Dec 1, 8:08 pm)
Re: [PATCH v3 2/3] Call the filesystem back whenever a pag ...
, Hugh Dickins
, (Wed Dec 1, 8:34 pm)
Re: [PATCH v3 2/3] Call the filesystem back whenever a pag ...
, Trond Myklebust
, (Wed Dec 1, 8:53 pm)
Re: [PATCH v3 2/3] Call the filesystem back whenever a pag ...
, Linus Torvalds
, (Wed Dec 1, 8:58 pm)
Re: [PATCH v2 3/3] NFS: Fix a memory leak in nfs_readdir
, Nick Piggin
, (Fri Dec 3, 2:12 am)
[PATCH v4 0/3] Fix more NFS readdir regressions
, Trond Myklebust
, (Mon Dec 6, 9:59 am)
[PATCH v4 1/3] NFS: Ensure we use the correct cookie in nf ...
, Trond Myklebust
, (Mon Dec 6, 9:59 am)
[PATCH v4 2/3] Call the filesystem back whenever a page is ...
, Trond Myklebust
, (Mon Dec 6, 9:59 am)
[PATCH v4 3/3] NFS: Fix a memory leak in nfs_readdir
, Trond Myklebust
, (Mon Dec 6, 9:59 am)
Re: [PATCH v4 2/3] Call the filesystem back whenever a pag ...
, Nick Piggin
, (Tue Dec 7, 12:08 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate