From: Andrew Morton Date: Wed, 11 Oct 2006 08:21:53 +0000 (-0700) Subject: [PATCH] invalidate_inode_pages2_range() debug X-Git-Tag: v2.6.19-rc2~74 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8258d4a574d3a8c01f0ef68aa26b969398a0e140;p=linux-2.6-omap-h63xx.git [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 Cc: Trond Myklebust Cc: Steve Dickson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/truncate.c b/mm/truncate.c index f4edbc179d1..fca28839c46 100644 --- a/mm/truncate.c +++ b/mm/truncate.c @@ -396,6 +396,7 @@ int invalidate_inode_pages2_range(struct address_space *mapping, pagevec_release(&pvec); cond_resched(); } + WARN_ON_ONCE(ret); return ret; } EXPORT_SYMBOL_GPL(invalidate_inode_pages2_range);