writeback: correct comment for move_expired_inodes()
authorWang Sheng-Hui <shhuiw@gmail.com>
Tue, 11 Sep 2012 00:28:18 +0000 (08:28 +0800)
committerFengguang Wu <fengguang.wu@intel.com>
Tue, 11 Sep 2012 00:29:50 +0000 (08:29 +0800)
The function scans @delaying_queue and stops at the first inode
whose dirtied_when is after *work->older_than_this. So the expired
ones being moved are those before *work->older_than_this. Correct
the comment here.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
fs/fs-writeback.c

index be3efc4f64f4b8c556e1d6de5c2ff400f05731ab..fd255c03d8644da3a4957329d44635217c38d902 100644 (file)
@@ -248,7 +248,7 @@ static bool inode_dirtied_after(struct inode *inode, unsigned long t)
 }
 
 /*
- * Move expired (dirtied after work->older_than_this) dirty inodes from
+ * Move expired (dirtied before work->older_than_this) dirty inodes from
  * @delaying_queue to @dispatch_queue.
  */
 static int move_expired_inodes(struct list_head *delaying_queue,