]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
fat-additions-to-support-fat_fallocate-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 18 Jul 2013 23:56:52 +0000 (09:56 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 18 Jul 2013 23:56:52 +0000 (09:56 +1000)
fix min() warning

Cc: Amit Sahrawat <a.sahrawat@samsung.com>
Cc: Namjae Jeon <namjae.jeon@samsung.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Ravishankar N <ravi.n1@samsung.com>
Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/fat/inode.c

index 5adc09fba413ee6df9acc1086f49defb74075675..fc6b37d66533d7df060ce16bdc8c0621cd4730cf 100644 (file)
@@ -162,7 +162,8 @@ static int fat_zero_falloc_area(struct file *file,
        int err;
 
        do {
-               unsigned offset, bytes;
+               unsigned offset;
+               size_t bytes;
                void *fsdata;
 
                offset = (curpos & (PAGE_CACHE_SIZE - 1));