Commit 4fe65cab authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

Documentation/filesystems/vfs.txt: fix ->repeasepage() description

->releasepage() does not remove the page from the mapping.
Acked-by: default avatarNeil Brown <neilb@suse.de>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 64141da5
...@@ -660,11 +660,10 @@ struct address_space_operations { ...@@ -660,11 +660,10 @@ struct address_space_operations {
releasepage: releasepage is called on PagePrivate pages to indicate releasepage: releasepage is called on PagePrivate pages to indicate
that the page should be freed if possible. ->releasepage that the page should be freed if possible. ->releasepage
should remove any private data from the page and clear the should remove any private data from the page and clear the
PagePrivate flag. It may also remove the page from the PagePrivate flag. If releasepage() fails for some reason, it must
address_space. If this fails for some reason, it may indicate indicate failure with a 0 return value.
failure with a 0 return value. releasepage() is used in two distinct though related cases. The
This is used in two distinct though related cases. The first first is when the VM finds a clean page with no active users and
is when the VM finds a clean page with no active users and
wants to make it a free page. If ->releasepage succeeds, the wants to make it a free page. If ->releasepage succeeds, the
page will be removed from the address_space and become free. page will be removed from the address_space and become free.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment