ceph: fix type promotion bug on 32bit systems
[sfrench/cifs-2.6.git] / fs / ceph / file.c
index b1da02f5dbe3b4f31a6e9b8b259ad974b1d9238f..b5f8038065d7c1f952ef1cbeef569ad88ac9e0f9 100644 (file)
@@ -2969,7 +2969,7 @@ static ssize_t __ceph_copy_file_range(struct file *src_file, loff_t src_off,
                ret = do_splice_direct(src_file, &src_off, dst_file,
                                       &dst_off, src_objlen, flags);
                /* Abort on short copies or on error */
-               if (ret < src_objlen) {
+               if (ret < (long)src_objlen) {
                        dout("Failed partial copy (%zd)\n", ret);
                        goto out;
                }