| * Copyright (c) 1999 Al Smith |
| * Portions derived from work (c) 1995,1996 Christian Vogelgsang. |
| #include <linux/buffer_head.h> |
| int efs_get_block(struct inode *inode, sector_t iblock, |
| struct buffer_head *bh_result, int create) |
| if (iblock >= inode->i_blocks) { |
| * i have no idea why this happens as often as it does |
| printk(KERN_WARNING "EFS: bmap(): block %d >= %ld (filesize %ld)\n", |
| phys = efs_map_block(inode, iblock); |
| map_bh(bh_result, inode->i_sb, phys); |
| int efs_bmap(struct inode *inode, efs_block_t block) { |
| printk(KERN_WARNING "EFS: bmap(): block < 0\n"); |
| /* are we about to read past the end of a file ? */ |
| if (!(block < inode->i_blocks)) { |
| * i have no idea why this happens as often as it does |
| printk(KERN_WARNING "EFS: bmap(): block %d >= %ld (filesize %ld)\n", |
| return efs_map_block(inode, block); |