[PATCH 32/45] writeback: update kupdate expire timestamp on each scan of b_io

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This prevents it to stuck with some very old but busy inodes,
and to give newer expired inodes a fair chance.

CC: Jan Kara <jack@xxxxxxx> 
Signed-off-by: Wu Fengguang <fengguang.wu@xxxxxxxxx>
---
 fs/fs-writeback.c |    3 +++
 1 file changed, 3 insertions(+)

--- linux.orig/fs/fs-writeback.c	2009-10-06 23:39:31.000000000 +0800
+++ linux/fs/fs-writeback.c	2009-10-06 23:39:32.000000000 +0800
@@ -829,6 +829,9 @@ static long wb_writeback(struct bdi_writ
 		args->nr_pages -= nr;
 		wrote += nr;
 
+		if (args->for_kupdate && list_empty(&wb->b_io))
+			oldest_jif = jiffies - expire_interval;
+
 		if (args->for_background && expire_interval &&
 		    ++fg_rounds && list_empty(&wb->b_io)) {
 			if (fg_rounds < 10)


--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux