[PATCH] remove ->get_blocks() support
[deliverable/linux.git] / fs / fat / inode.c
index 297300fe81c21a1523467b2cb4c869b1e8c4d415..404bfc9f7385ff1051c4abff11743346d857889f 100644 (file)
@@ -101,11 +101,11 @@ static int __fat_get_blocks(struct inode *inode, sector_t iblock,
 }
 
 static int fat_get_blocks(struct inode *inode, sector_t iblock,
-                         unsigned long max_blocks,
                          struct buffer_head *bh_result, int create)
 {
        struct super_block *sb = inode->i_sb;
        int err;
+       unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits;
 
        err = __fat_get_blocks(inode, iblock, &max_blocks, bh_result, create);
        if (err)
This page took 0.031933 seconds and 5 git commands to generate.