aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-10-11 04:21:53 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-11 14:14:22 -0400
commit8258d4a574d3a8c01f0ef68aa26b969398a0e140 (patch)
treeb3b3e062f340f0bbddd166358a7adebe6099574a /mm
parentbeed33a816204cb402c69266475b6a60a2433ceb (diff)
[PATCH] invalidate_inode_pages2_range() debug
A failure in invalidate_inode_pages2_range() can result in unpleasant things happening in NFS (at least). Stick a WARN_ON_ONCE() in there so we can find out if it happens, and maybe why. (akpm: might be a -mm-only patch, we'll see..) Cc: Chuck Lever <chuck.lever@oracle.com> Cc: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: Steve Dickson <SteveD@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/truncate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/truncate.c b/mm/truncate.c
index f4edbc179d14..fca28839c46e 100644
--- a/mm/truncate.c
+++ b/mm/truncate.c
@@ -396,6 +396,7 @@ int invalidate_inode_pages2_range(struct address_space *mapping,
396 pagevec_release(&pvec); 396 pagevec_release(&pvec);
397 cond_resched(); 397 cond_resched();
398 } 398 }
399 WARN_ON_ONCE(ret);
399 return ret; 400 return ret;
400} 401}
401EXPORT_SYMBOL_GPL(invalidate_inode_pages2_range); 402EXPORT_SYMBOL_GPL(invalidate_inode_pages2_range);