]> git.karo-electronics.de Git - karo-tx-linux.git/commit
writeback: use older_than_this_is_set instead of magic older_than_this == 0
authorJan Kara <jack@suse.cz>
Tue, 5 Nov 2013 05:55:45 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:45 +0000 (16:55 +1100)
commit596b741d29d0896b77c513d14c99602c331d69ae
tree92e3db0731ed945ee6c761d6284cc2f1e71495b3
parent2c7f496c05bb725d8fe37b697e4b10717e6ab2b0
writeback: use older_than_this_is_set instead of magic older_than_this == 0

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 to include all inodes.

Signed-off-by: Jan Kara <jack@suse.cz>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Cc: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/fs-writeback.c