4 * Copyright (c) 1999 Al Smith
6 * Portions derived from work (c) 1995,1996 Christian Vogelgsang.
9 #include <linux/buffer_head.h>
10 <<<<<<< HEAD
:fs
/efs
/file
.c
11 #include <linux/efs_fs.h>
14 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a
:fs
/efs
/file
.c
16 int efs_get_block(struct inode
*inode
, sector_t iblock
,
17 struct buffer_head
*bh_result
, int create
)
24 if (iblock
>= inode
->i_blocks
) {
27 * i have no idea why this happens as often as it does
29 printk(KERN_WARNING
"EFS: bmap(): block %d >= %ld (filesize %ld)\n",
36 phys
= efs_map_block(inode
, iblock
);
38 map_bh(bh_result
, inode
->i_sb
, phys
);
42 int efs_bmap(struct inode
*inode
, efs_block_t block
) {
45 printk(KERN_WARNING
"EFS: bmap(): block < 0\n");
49 /* are we about to read past the end of a file ? */
50 if (!(block
< inode
->i_blocks
)) {
53 * i have no idea why this happens as often as it does
55 printk(KERN_WARNING
"EFS: bmap(): block %d >= %ld (filesize %ld)\n",
63 return efs_map_block(inode
, block
);