]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
fat-exportfs-rebuild-inode-if-ilookup-fails-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Oct 2012 04:23:02 +0000 (15:23 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 22 Oct 2012 04:01:11 +0000 (15:01 +1100)
fix warnings/types

fs/fat/nfs.c: In function 'fat_nfs_get_inode':
fs/fat/nfs.c:68: warning: passing argument 3 of 'fat_get_blknr_offset' from incompatible pointer type
fs/fat/fat.h:218: note: expected 'sector_t *' but argument is of type 'loff_t *'
fs/fat/inode.c: In function '__fat_write_inode':
fs/fat/inode.c:630: warning: passing argument 3 of 'fat_get_blknr_offset' from incompatible pointer type
fs/fat/fat.h:218: note: expected 'sector_t *' but argument is of type 'loff_t *'

Cc: "J. Bruce Fields" <bfields@fieldses.org>
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/fat/inode.c
fs/fat/nfs.c

index 303dca2c42e45811c040bbb16a73e3723fc4d388..80c6fddee3968480b9c50d100e174f6b64fcd43f 100644 (file)
@@ -616,7 +616,8 @@ static int __fat_write_inode(struct inode *inode, int wait)
        struct msdos_sb_info *sbi = MSDOS_SB(sb);
        struct buffer_head *bh;
        struct msdos_dir_entry *raw_entry;
-       loff_t i_pos, blocknr;
+       loff_t i_pos;
+       sector_t blocknr;
        int offset, err;
 
        if (inode->i_ino == MSDOS_ROOT_INO)
index 156903bc22d9a7929f16e8a7f8a595952634c4e9..a1c5771b83143dc2cc08da64f4abc0d35344f3d2 100644 (file)
@@ -63,7 +63,7 @@ static struct inode *fat_nfs_get_inode(struct super_block *sb,
        if (inode == NULL && MSDOS_SB(sb)->options.nfs == FAT_NFS_NOSTALE_RO) {
                struct buffer_head *bh = NULL;
                struct msdos_dir_entry *de ;
-               loff_t blocknr;
+               sector_t blocknr;
                int offset;
                fat_get_blknr_offset(MSDOS_SB(sb), i_pos, &blocknr, &offset);
                bh = sb_bread(sb, blocknr);