Files
linux-apfs/fs
Andrew Morton c6945e77e4 writeback: fix time ordering of the per superblock dirty inode lists 5
When the writeback function is operating in writeback-for-flushing mode (as
opposed to writeback-for-integrity) and it encounters an I_LOCKed inode, it
will skip writing that inode.  This is done for throughput and latency: move
on to another inode rather than blocking for this one.

Writeback skips this inode by moving it off s_io and onto s_dirty, so that
writeback can proceed with the other inodes on s_io.

However that inode movement can corrupt s_dirty's reverse-time-orderedness.
Fix that by using the new redirty_tail(), which will update the refiled
inode's dirtied_when field.

Note: the behaviour in here is a bit rude: if kupdate happens to come across a
locked inode then it will defer writeback of that inode for another 30
seconds.  We'll address that in the next patch.

Cc: Mike Waychison <mikew@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-17 08:43:02 -07:00
..
2007-10-17 08:42:47 -07:00
2007-10-17 08:42:45 -07:00
2007-10-15 17:56:36 -07:00
2007-10-17 08:42:53 -07:00
2007-10-16 09:43:07 -07:00
2007-10-17 08:43:01 -07:00
2007-10-17 08:42:53 -07:00
2007-10-17 08:42:54 -07:00
2007-10-17 08:42:45 -07:00
2007-10-17 08:42:45 -07:00
2007-07-29 17:09:29 -07:00
2007-10-16 09:42:53 -07:00
2007-10-17 08:42:56 -07:00
2007-10-17 08:43:01 -07:00
2007-10-17 08:42:48 -07:00
2007-10-16 09:42:54 -07:00
2007-10-17 08:42:52 -07:00
2007-07-19 10:04:45 -07:00
2007-10-15 17:00:19 +02:00
2007-07-27 15:40:13 -07:00
2007-10-17 08:43:01 -07:00
2007-10-17 08:42:52 -07:00