From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH V3 11/7] Orangefs: large integer implicitly truncated to unsigned type Date: Fri, 31 Jul 2015 00:36:22 -0700 Message-ID: <20150731073622.GA14506@infradead.org> References: <1437143897-9069-1-git-send-email-root@logtruck.clemson.edu> <1438288381-12327-1-git-send-email-hubcap@logtruck.clemson.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org To: hubcap Return-path: Received: from bombadil.infradead.org ([198.137.202.9]:49045 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750991AbbGaHgZ (ORCPT ); Fri, 31 Jul 2015 03:36:25 -0400 Content-Disposition: inline In-Reply-To: <1438288381-12327-1-git-send-email-hubcap@logtruck.clemson.edu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Jul 30, 2015 at 04:33:01PM -0400, hubcap wrote: > From: Mike Marshall > > make.cross ARCH=tile doesn't like "inode->i_bytes = PAGE_CACHE_SIZE;", > so cast PAGE_CACHE_SIZE to unsigned short. I don't think this is correct. i_bytes is short because it only contains the low bits of th size, the rest goes into i_blocks. You probably want to use inode_set_bytes here instead.