Re: [PATCH] eCryptfs: infinite loop bug
From: Linus Torvalds
Date: Wed Jan 18 2012 - 22:43:27 EST
On Wed, Jan 18, 2012 at 1:40 PM, Tyler Hicks <tyhicks@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/