]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix broken comparison in readdir loop
authorSage Weil <sage@newdream.net>
Thu, 12 May 2011 22:28:11 +0000 (15:28 -0700)
committerSage Weil <sage@newdream.net>
Thu, 19 May 2011 18:25:04 +0000 (11:25 -0700)
commit101f226e546b56de2f10bd99af44ceaf40c6a0e3
tree7e69ca065c8ea5b4152e73f59347924f9edb02d8
parentce115e0127d13e7c1101fb31adc351cfc8dc7a54
ceph: fix broken comparison in readdir loop

Both off and fi->offset are unsigned, so the difference is always >= 0.
Compare them directly instead of the sign of the difference.

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