Skip to contentSkip to conversation

mm: fix comments for invalidate_inode_pages2()

PATCH Applied Peng Tao 2 participants 2 messages Oct 19, 2009

Subsystems (2)
lore
Share & tools
lore

Peng Tao

author
#0 lore raw

PATCH 1/1 mm: fix comments for invalidate_inode_pages2()

invalidate_inode_pages2() returns -EBUSY *NOT* -EIO if any pages could not be invalidated.

---
 mm/truncate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/truncate.c +1 -1
index 450cebd..2c147a7 100644
@@ -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)
 {
Signature · 1 line
1.6.2-rc2.GIT
Applied
#1 lore raw
Quoted 13 lines · Peng Tao

invalidate_inode_pages2() returns -EBUSY *NOT* -EIO if any pages could not be invalidated.

---
 mm/truncate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/truncate.c +0 -0
index 450cebd..2c147a7 100644

mm/truncate.c EXPORT_SYMBOL_GPL(invalidate_inode_pages2_range); · line 496

Quoted 8 lines
mm/truncate.c +1 -1
@@ -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.

Signature · 2 lines
Jiri Kosina
SUSE Labs, Novell Inc.