From patchwork Tue Jul 6 00:16:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel F Mascarenhas Sousa Filipe X-Patchwork-Id: 110291 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o660Gmgw018435 for ; Tue, 6 Jul 2010 00:16:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753470Ab0GFAQs (ORCPT ); Mon, 5 Jul 2010 20:16:48 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:40537 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753252Ab0GFAQr convert rfc822-to-8bit (ORCPT ); Mon, 5 Jul 2010 20:16:47 -0400 Received: by bwz1 with SMTP id 1so3090096bwz.19 for ; Mon, 05 Jul 2010 17:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=QrBd4Bz02p7TxNWMTl5dFXgXlvi9lOJIFIH5SbIlH08=; b=GOwssqdz0uZGKyJUKJrPd/Ikzu7+tLrGq1WDigRMAqKw2qBR8xYBo86KcvT7ArPYFP kyBhOvKaf5n/AaMDH7hE2IMNBEByqkhQBBP/iPV/1cCO6UpaulqdD1AR9zeNUwHZS6hb 2EgJIpMIrfZUpMBM4Y4Xzqt1NuKi/7ZWffLKQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=fETlFezA82ATkHjrjmC+HedWzlxqGNx3RZ8g64nZOU/hqI5Og7gqmfPCu3TDlfsfS8 QNmHa663g0uDX5JtCGnNWpKZ5ptCHdIny7T80mRcTzko8Ky50g6NIj+Vz4pRXPxbDKLs eccEpXMyFKt5jIJQTccw81WRQbL3JtojIIW6E= MIME-Version: 1.0 Received: by 10.204.19.208 with SMTP id c16mr2999479bkb.30.1278375405493; Mon, 05 Jul 2010 17:16:45 -0700 (PDT) Received: by 10.204.71.79 with HTTP; Mon, 5 Jul 2010 17:16:45 -0700 (PDT) Date: Tue, 6 Jul 2010 01:16:45 +0100 Message-ID: Subject: doubt: inode_t->get_layout_size_increment() is signed. From: Miguel F Mascarenhas Sousa Filipe To: ceph-devel@vger.kernel.org Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 06 Jul 2010 00:16:49 +0000 (UTC) diff --git a/src/mds/mdstypes.h b/src/mds/mdstypes.h index b7bfd1d..3054610 100644 --- a/src/mds/mdstypes.h +++ b/src/mds/mdstypes.h @@ -379,7 +379,7 @@ struct inode_t { bool is_truncating() const { return (truncate_pending > 0); } - int64_t get_layout_size_increment() { + uint64_t get_layout_size_increment() { return layout.fl_object_size * layout.fl_stripe_count; }