mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mm: fix comments for invalidate_inode_pages2()
@ 2009-10-19  6:48 Peng Tao
  2009-10-19  7:06 ` Jiri Kosina
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Tao @ 2009-10-19  6:48 UTC (permalink / raw)
  To: trivial; +Cc: linux-kernel, Peng Tao

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)
 {
-- 
1.6.2-rc2.GIT


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

* Re: [PATCH] mm: fix comments for invalidate_inode_pages2()
  2009-10-19  6:48 [PATCH] mm: fix comments for invalidate_inode_pages2() Peng Tao
@ 2009-10-19  7:06 ` Jiri Kosina
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2009-10-19  7:06 UTC (permalink / raw)
  To: Peng Tao; +Cc: linux-kernel

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.

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

end of thread, other threads:[~2009-10-19  7:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-19  6:48 [PATCH] mm: fix comments for invalidate_inode_pages2() Peng Tao
2009-10-19  7:06 ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®