]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix flush tid comparision
authorYan, Zheng <zyan@redhat.com>
Thu, 23 Oct 2014 00:13:26 +0000 (17:13 -0700)
committerIlya Dryomov <idryomov@redhat.com>
Thu, 13 Nov 2014 19:19:05 +0000 (22:19 +0300)
commitf9d3a7f4621d7d7d861eb9a112f12bfe61941a11
treef98b6eb988e762aa344871c88e13188f5c7a2982
parent5b69731116214c747dd19798112a990641d3723e
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.

Reflects ceph.git commit a5184cf46a6e867287e24aeb731634828467cd98.

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