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