projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mm/mempolicy: fix a race between offset_il_node and mpol_rebind_task
[linux-2.6-microblaze.git]
/
fs
/
drop_caches.c
diff --git
a/fs/drop_caches.c
b/fs/drop_caches.c
index
f00fcc4
..
e619c31
100644
(file)
--- a/
fs/drop_caches.c
+++ b/
fs/drop_caches.c
@@
-3,6
+3,7
@@
* Implement the manual drop-all-pagecache function
*/
* Implement the manual drop-all-pagecache function
*/
+#include <linux/pagemap.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/fs.h>
@@
-27,7
+28,7
@@
static void drop_pagecache_sb(struct super_block *sb, void *unused)
* we need to reschedule to avoid softlockups.
*/
if ((inode->i_state & (I_FREEING|I_WILL_FREE|I_NEW)) ||
* we need to reschedule to avoid softlockups.
*/
if ((inode->i_state & (I_FREEING|I_WILL_FREE|I_NEW)) ||
- (
inode->i_mapping->nrpages == 0
&& !need_resched())) {
+ (
mapping_empty(inode->i_mapping)
&& !need_resched())) {
spin_unlock(&inode->i_lock);
continue;
}
spin_unlock(&inode->i_lock);
continue;
}