]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
uclient: fix warning
authorSage Weil <sage@newdream.net>
Thu, 3 Sep 2009 23:47:50 +0000 (16:47 -0700)
committerSage Weil <sage@newdream.net>
Fri, 4 Sep 2009 17:06:42 +0000 (10:06 -0700)
src/client/Client.cc

index 30184be1af2a459e53fe62e4f43f0a11f3d5ca28..9bec9fe82bba354e9d93e363432f10b0cb6931dc 100644 (file)
@@ -4108,7 +4108,7 @@ int Client::_read_async(Fh *f, __u64 off, __u64 len, bufferlist *bl)
     dout(10) << "readahead " << f->nr_consec_read << " reads " 
             << f->consec_read_bytes << " bytes ... readahead " << off << "~" << l
             << " (caller wants " << off << "~" << len << ")" << dendl;
-    if (l > len) {
+    if (l > (loff_t)len) {
       objectcacher->file_read(in->ino, &in->layout, in->snapid,
                              off, l, NULL, 0, 0);
       dout(10) << "readahead initiated" << dendl;