Commit 8258d4a5 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

[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: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent beed33a8
...@@ -396,6 +396,7 @@ int invalidate_inode_pages2_range(struct address_space *mapping, ...@@ -396,6 +396,7 @@ int invalidate_inode_pages2_range(struct address_space *mapping,
pagevec_release(&pvec); pagevec_release(&pvec);
cond_resched(); cond_resched();
} }
return ret; return ret;
} }
EXPORT_SYMBOL_GPL(invalidate_inode_pages2_range); EXPORT_SYMBOL_GPL(invalidate_inode_pages2_range);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment