ceph: fix xattr cap writeback
authorSage Weil <sage@newdream.net>
Sun, 22 Aug 2010 22:16:41 +0000 (15:16 -0700)
committerSage Weil <sage@newdream.net>
Sun, 22 Aug 2010 22:16:41 +0000 (15:16 -0700)
commit082afec92d1052305af1195f591602f4d0f44277
tree7012fc71ac7be7bd88f2b0d92f27a3ba46c354de
parentf3c60c5918f26ea16761ddc8b12d8401a3db626b
ceph: fix xattr cap writeback

We should include the xattr metadata blob in the cap update message any
time we are flushing dirty state, NOT just when we are also dropping the
cap.  This fixes async xattr writeback.

Also, clean up the code slightly to avoid duplicating the bit test.

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