author: Eric Sandeen <sandeen@redhat.com> 2019-12-06 10:54:23 -0600
committer: Al Viro <viro@zeniv.linux.org.uk> 2019-12-18 00:03:01 -0500
commit: 04646aebd30b99f2cfa0182435a2ec252fcb16d0
parent: e0ff126ee7ad405c1ef531f9f3db92929de4f20f
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/drop_caches.c b/fs/drop_caches.c
index d31b6c72b476..dc1a1d5d825b 100644
--- a/fs/drop_caches.c
+++ b/fs/drop_caches.c
@@ -35,11 +35,11 @@ static void drop_pagecache_sb(struct super_block *sb, void *unused)
spin_unlock(&inode->i_lock);
spin_unlock(&sb->s_inode_list_lock);
- cond_resched();
invalidate_mapping_pages(inode->i_mapping, 0, -1);
iput(toput_inode);
toput_inode = inode;
+ cond_resched();
spin_lock(&sb->s_inode_list_lock);
}
spin_unlock(&sb->s_inode_list_lock);