Commit 33270282 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] inodes_stat.nr_unused fix

__sync_single_inode() is forgetting to increment inodes_stat.nr_unused when
moving a previously-dirty inode onto the inode_unused list.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a45e3c5c
......@@ -225,6 +225,7 @@ __sync_single_inode(struct inode *inode, struct writeback_control *wbc)
* The inode is clean, unused
*/
list_move(&inode->i_list, &inode_unused);
inodes_stat.nr_unused++;
}
}
wake_up_inode(inode);
......
Markdown is supported
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