writeback-do-not-sync-data-dirtied-after-sync-start-fix-2.patch removed from -mm tree
Subject: [folded-merged] writeback-do-not-sync-data-dirtied-after-sync-start-fix-2.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 12 Nov 2013 14:35:43 -0800
The patch titled
Subject: writeback-do-not-sync-data-dirtied-after-sync-start-fix-2.txt
has been removed from the -mm tree. Its filename was
writeback-do-not-sync-data-dirtied-after-sync-start-fix-2.patch
This patch was dropped because it was folded into writeback-do-not-sync-data-dirtied-after-sync-start.patch
------------------------------------------------------
From: Jan Kara <[email protected]>
Subject: writeback-do-not-sync-data-dirtied-after-sync-start-fix-2.txt
Quoted 12 lines · Andrew Morton
Quoted 9 lines · On Wed, 9 Oct 2013 17:03:25 +0200 Jan Kara <[email protected]> wrote:
From: Jan Kara <[email protected]>
Date: Wed, 9 Oct 2013 15:41:50 +0200
Subject: [PATCH] writeback: Useolder_than_this_is_setinstead of magic
older_than_this== 0Currently we use 0 as a special value of
work->older_than_thisto indicate thatwb_writeback()should setwork->older_that_thisto current time. This works but it is a bit magic. So use a special flag inwork_structfor that.
Quoted 8 lines
OK.
Quoted 3 lines
(quoted diff) +1
-1- if (!work->older_than_this) + if (!work->older_than_this_is_set)work->older_than_this = jiffies;It would be logical although presumably unneeded to set
older_than_this_is_sethere?
Yes. Updated.
Quoted 3 lines
Quoted 1 line
Also fixup writeback from workqueue rescuer to include all inodes.
There's nothing in the patch which matches this sentence?
The sentence is about the hunk below. writeback_inodes_wb() is special in
that it directly calls queue_io() (everything else goes through wb_writeback()) and my previous patch thus resulted in using 0 as an older_than_this value => likely we wouldn't queue any inodes for writeback.
I've added WARN_ON_ONCE into move_expired_inodes() to increase a chance of catching such mistakes in future (although in this particular case it wouldn't really help because writeback_inodes_wb() gets hardly ever called).
Currently we use 0 as a special value of work->older_than_this to indicate that wb_writeback() should set work->older_that_this to current time. This works but it is a bit magic. So use a special flag in work_struct for that.
Also fixup writeback from workqueue rescuer (writeback_inodes_wb()) to include all inodes. Currently it would use 0 as an older_than_this value thus queue_io() would likely not queue any inodes for writeback.
---
fs/fs-writeback.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
fs/fs-writeback.c renamed from fs/fs-writeback.c~writeback-do-not-sync-data-dirtied-after-sync-start-fix-2 +4 -1
@@ -251,6 +251,7 @@ static int move_expired_inodes(struct liint do_sb_sort =0 ;int moved =0 ; +WARN_ON_ONCE (!work->older_than_this_is_set);while (!list_empty (delaying_queue)) { inode =wb_inode (delaying_queue->prev);if (inode_dirtied_after (inode, work->older_than_this))
@@ -800,8 +801,10 @@ static long wb_writeback(struct bdi_writstruct inode *inode;long progress; -if (!work->older_than_this_is_set) +if (!work->older_than_this_is_set) { work->older_than_this = jiffies; + work->older_than_this_is_set =1 ; + }spin_lock (&wb->list_lock);for (;;) {
_
Patches currently in -mm which might be from [email protected] are
origin.patch
ocfs2-dont-spam-on-edquot.patch ocfs2-simplify-ocfs2_invalidatepage-and-ocfs2_releasepage.patch writeback-do-not-sync-data-dirtied-after-sync-start.patch writeback-do-not-sync-data-dirtied-after-sync-start-fix-3.patch rbtree-fix-rbtree_postorder_for_each_entry_safe-iterator.patch