GFS2: Use filemap_fdatawrite() to write back the AIL
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 30 Mar 2011 15:25:51 +0000 (16:25 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 20 Apr 2011 07:59:25 +0000 (08:59 +0100)
commit5ac048bb7ea6e87b06504b999017cfa1f38f4092
tree218a2dd0e6f6d39ead51bb32c10f801f6153c069
parent1027efaa238e1b65c07b6c2d9e270e548c2bdb07
GFS2: Use filemap_fdatawrite() to write back the AIL

In order to ensure that the mapping stats (and thus the bdi) are correctly
updated, this patch changes the AIL writeback to use the filemap_datawrite
function. This helps prevent stalls in balance_dirty_pages() due to
large amounts of dirty metadata when there is little or no dirty data
around.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/log.c