xfs: Don't wake xfsbufd when idle
authorDave Chinner <david@fromorbit.com>
Mon, 11 Jan 2010 11:49:59 +0000 (11:49 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 15 Jan 2010 21:32:54 +0000 (15:32 -0600)
The xfsbufd wakes every xfsbufd_centisecs (once per second by
default) for each filesystem even when the filesystem is idle.  If
the xfsbufd has nothing to do, put it into a long term sleep and
only wake it up when there is work pending (i.e. dirty buffers to
flush soon). This will make laptop power misers happy.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>

No differences found