Ocfs2/refcounttree: Fix a bug for refcounttree to writeback clusters in a right number.
commit4b33fadfd4eddc8a41fd2dc08c623ed401519fff
authorTristan Ye <tristan.ye@oracle.com>
Fri, 21 Jan 2011 10:20:18 +0000 (21 18:20 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Mar 2011 23:05:16 +0000 (7 15:05 -0800)
tree4b48198865b42157c645b583794865c1efa683af
parentdbb59808e7fca1d4c794a3bfeea7f2046fc25f12
Ocfs2/refcounttree: Fix a bug for refcounttree to writeback clusters in a right number.

commit acf3bb007e5636ef4c17505affb0974175108553 upstream.

Current refcounttree codes actually didn't writeback the new pages out in
write-back mode, due to a bug of always passing a ZERO number of clusters
to 'ocfs2_cow_sync_writeback', the patch tries to pass a proper one in.

Signed-off-by: Tristan Ye <tristan.ye@oracle.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ocfs2/refcounttree.c