diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2010-12-02 17:31:19 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-12-02 17:51:15 -0500 |
commit | 4fe65cab844e6d3d7d310e66a501d5e7242ecb54 (patch) | |
tree | 46d80c5091d14a9d2492d1e49e421a2c6ae889bd | |
parent | 64141da587241301ce8638cc945f8b67853156ec (diff) |
Documentation/filesystems/vfs.txt: fix ->repeasepage() description
->releasepage() does not remove the page from the mapping.
Acked-by: Neil Brown <neilb@suse.de>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | Documentation/filesystems/vfs.txt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Documentation/filesystems/vfs.txt b/Documentation/filesystems/vfs.txt index ed7e5efc06d8..55c28b79d8dc 100644 --- a/Documentation/filesystems/vfs.txt +++ b/Documentation/filesystems/vfs.txt | |||
@@ -660,11 +660,10 @@ struct address_space_operations { | |||
660 | releasepage: releasepage is called on PagePrivate pages to indicate | 660 | releasepage: releasepage is called on PagePrivate pages to indicate |
661 | that the page should be freed if possible. ->releasepage | 661 | that the page should be freed if possible. ->releasepage |
662 | should remove any private data from the page and clear the | 662 | should remove any private data from the page and clear the |
663 | PagePrivate flag. It may also remove the page from the | 663 | PagePrivate flag. If releasepage() fails for some reason, it must |
664 | address_space. If this fails for some reason, it may indicate | 664 | indicate failure with a 0 return value. |
665 | failure with a 0 return value. | 665 | releasepage() is used in two distinct though related cases. The |
666 | This is used in two distinct though related cases. The first | 666 | first is when the VM finds a clean page with no active users and |
667 | is when the VM finds a clean page with no active users and | ||
668 | wants to make it a free page. If ->releasepage succeeds, the | 667 | wants to make it a free page. If ->releasepage succeeds, the |
669 | page will be removed from the address_space and become free. | 668 | page will be removed from the address_space and become free. |
670 | 669 | ||