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 pr_warn("%s(): block %d >= %ld (filesize %ld)\n",
26 __func__
, block
, inode
->i_blocks
, inode
->i_size
);
30 phys
= efs_map_block(inode
, iblock
);
32 map_bh(bh_result
, inode
->i_sb
, phys
);
36 int efs_bmap(struct inode
*inode
, efs_block_t block
) {
39 pr_warn("%s(): block < 0\n", __func__
);
43 /* are we about to read past the end of a file ? */
44 if (!(block
< inode
->i_blocks
)) {
47 * i have no idea why this happens as often as it does
49 pr_warn("%s(): block %d >= %ld (filesize %ld)\n",
50 __func__
, block
, inode
->i_blocks
, inode
->i_size
);
55 return efs_map_block(inode
, block
);
This page took 0.03075 seconds and 5 git commands to generate.