ceph: don't use writeback_control in writepages completion
authorSage Weil <sage@newdream.net>
Thu, 6 May 2010 04:30:35 +0000 (21:30 -0700)
committerSage Weil <sage@newdream.net>
Thu, 6 May 2010 04:31:40 +0000 (21:31 -0700)
commit54ad023ba8108d0163acc931ed4b5e4a8a3a7327
tree93edeaba0b8f851c9b5a18c6e42c92b2237480c5
parent5dfc589a8467470226feccdc50f1b32713318e7b
ceph: don't use writeback_control in writepages completion

The ->writepages writeback_control is not still valid in the writepages
completion.  We were touching it solely to adjust pages_skipped when there
was a writeback error (EIO, ENOSPC, EPERM due to bad osd credentials),
causing an oops in the writeback code shortly thereafter.  Updating
pages_skipped on error isn't correct anyway, so let's just rip out this
(clearly broken) code to pass the wbc to the completion.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/addr.c
fs/ceph/osd_client.h