]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/fat/dir.c
[PATCH] fat: support ->direct_IO()
[linux-2.6-omap-h63xx.git] / fs / fat / dir.c
index 4ce77475aed3992c3c372888fe4ab84c1a624b22..eef1b81aa294d8a8f82686030edea5ca006ce320 100644 (file)
@@ -68,8 +68,8 @@ static int fat__get_entry(struct inode *dir, loff_t *pos,
 {
        struct super_block *sb = dir->i_sb;
        sector_t phys, iblock;
-       int offset;
-       int err;
+       unsigned long mapped_blocks;
+       int err, offset;
 
 next:
        if (*bh)
@@ -77,7 +77,7 @@ next:
 
        *bh = NULL;
        iblock = *pos >> sb->s_blocksize_bits;
-       err = fat_bmap(dir, iblock, &phys);
+       err = fat_bmap(dir, iblock, &phys, &mapped_blocks);
        if (err || !phys)
                return -1;      /* beyond EOF or error */