ceph: fix broken comparison in readdir loop