mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[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 <[email protected]> Cc: Trond Myklebust <[email protected]> Cc: Steve Dickson <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
beed33a816
commit
8258d4a574
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue