lkml.org 
[lkml]   [2009]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm: fix comments for invalidate_inode_pages2()
On Mon, 19 Oct 2009, Peng Tao wrote:

> invalidate_inode_pages2() returns -EBUSY *NOT* -EIO if any pages could not be
> invalidated.
>
> Signed-off-by: Peng Tao <bergwolf@gmail.com>
> ---
> mm/truncate.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/mm/truncate.c b/mm/truncate.c
> index 450cebd..2c147a7 100644
> --- a/mm/truncate.c
> +++ b/mm/truncate.c
> @@ -490,7 +490,7 @@ EXPORT_SYMBOL_GPL(invalidate_inode_pages2_range);
> * Any pages which are found to be mapped into pagetables are unmapped prior to
> * invalidation.
> *
> - * Returns -EIO if any pages could not be invalidated.
> + * Returns -EBUSY if any pages could not be invalidated.
> */
> int invalidate_inode_pages2(struct address_space *mapping)
> {

Right, this way it's consistent with invalidate_inode_pages2_range().

Applied, thanks.

--
Jiri Kosina
SUSE Labs, Novell Inc.


\
 
 \ /
  Last update: 2009-10-19 09:09    [W:0.462 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site