]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: fix flush tid comparision
authorYan, Zheng <zyan@redhat.com>
Thu, 23 Oct 2014 00:13:26 +0000 (17:13 -0700)
committerYan, Zheng <zyan@redhat.com>
Mon, 27 Oct 2014 21:39:45 +0000 (14:39 -0700)
commit9f9bd39daf85d25edd792f9c77a7a38f5b8d0b28
tree6e8954a72e05a2bdfff9525a4ec9a739423dd195
parent1d08da16d3ae323746883469449785a9d35df4e3
ceph: fix flush tid comparision

TID of cap flush ack is 64 bits, but ceph_inode_info::flushing_cap_tid
is only 16 bits. 16 bits should be plenty to let the cap flush updates
pipeline appropriately, but we need to cast in the proper direction when
comparing these differently-sized versions. So downcast the 64-bits one
to 16 bits.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/caps.c