Skip to content
  • Jan Kara's avatar
    writeback: integrated background writeback work · 6585027a
    Jan Kara authored
    
    
    Check whether background writeback is needed after finishing each work.
    
    When bdi flusher thread finishes doing some work check whether any kind of
    background writeback needs to be done (either because
    dirty_background_ratio is exceeded or because we need to start flushing
    old inodes).  If so, just do background write back.
    
    This way, bdi_start_background_writeback() just needs to wake up the
    flusher thread.  It will do background writeback as soon as there is no
    other work.
    
    This is a preparatory patch for the next patch which stops background
    writeback as soon as there is other work to do.
    
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    Signed-off-by: default avatarWu Fengguang <fengguang.wu@intel.com>
    Cc: Johannes Weiner <hannes@cmpxchg.org>
    Cc: Dave Chinner <david@fromorbit.com>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Jan Engelhardt <jengelh@medozas.de>
    Cc: Jens Axboe <axboe@kernel.dk>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    6585027a