]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf8b64b95aab8a90e549cabda925f5542bb1f432e
tree7012fc71ac7be7bd88f2b0d92f27a3ba46c354de
parent207ca41682d3e03bae219d90eacaf512ab8ebd6e
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