]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
fatfs: fix build warning with 64k PAGE_SIZE
authorOlof Johansson <olof@lixom.net>
Mon, 28 Apr 2008 09:16:32 +0000 (02:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:47 +0000 (08:58 -0700)
commit9f354858b8ea29e969b82dd96caea376157d76ca
treeb76f572fe64c80578f23fbd754867a838ebd5fa9
parent0607fd02587a6b4b086dc746d63123c1f284db68
fatfs: fix build warning with 64k PAGE_SIZE

Annoying gcc warning:

fs/fat/inode.c: In function 'fat_fill_super':
fs/fat/inode.c:1222: warning: comparison is always false due to limited range of data type

Change it to compare with 4K instead of PAGE_CACHE_SIZE, as suggested
by OGAWA-san.

[FAT spec says: logical_sector_size should be 512, 1024, 2048 4096]
So, at least for now, we limit it to 4096.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/inode.c