]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/fat/inode.c
fat: mmu_private race fix
[linux-2.6-omap-h63xx.git] / fs / fat / inode.c
index be88208b83a65e39477459c96dcd9a1f86c4a641..9e37ad93c730bc2a8976ab6a6f9fd01b5c5203e6 100644 (file)
@@ -64,7 +64,7 @@ static inline int __fat_get_block(struct inode *inode, sector_t iblock,
        sector_t phys;
        int err, offset;
 
-       err = fat_bmap(inode, iblock, &phys, &mapped_blocks);
+       err = fat_bmap(inode, iblock, &phys, &mapped_blocks, create);
        if (err)
                return err;
        if (phys) {
@@ -94,7 +94,7 @@ static inline int __fat_get_block(struct inode *inode, sector_t iblock,
        *max_blocks = min(mapped_blocks, *max_blocks);
        MSDOS_I(inode)->mmu_private += *max_blocks << sb->s_blocksize_bits;
 
-       err = fat_bmap(inode, iblock, &phys, &mapped_blocks);
+       err = fat_bmap(inode, iblock, &phys, &mapped_blocks, create);
        if (err)
                return err;