[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+55aFwYufaD_vqwEvfPrfj6wVh9c80BNi3+qziV=qStVxN=3w@mail.gmail.com>
Date: Wed, 18 Jan 2012 19:43:06 -0800
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Tyler Hicks <tyhicks@...onical.com>
Cc: Cong Wang <xiyou.wangcong@...il.com>, Li Wang <liwang@...t.edu.cn>,
ecryptfs@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org,
Dustin Kirkland <kirkland@...onical.com>
Subject: Re: [PATCH] eCryptfs: infinite loop bug
On Wed, Jan 18, 2012 at 1:40 PM, Tyler Hicks <tyhicks@...onical.com> wrote:
>
> mm/filemap.c uses unsigned long for variables used to identify an offset
> into a single page. That's what I'm tempted to use for offset_in_page,
> rather than loff_t.
Indeed. The offset within a page will fit fine even in an "unsigned
int", and "loff_t" is crazy overkill - and usually generates horrible
code on 32-bit architectures.
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists