lkml.org 
[lkml]   [2009]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 32/45] writeback: update kupdate expire timestamp on each scan of b_io
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@suse.cz>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
---
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)



\
 
 \ /
  Last update: 2009-10-07 10:15    [W:1.381 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site