patch-2.3.26 linux/fs/bfs/file.c
Next file: linux/fs/bfs/inode.c
Previous file: linux/fs/bfs/dir.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Fri Nov 5 10:30:13 1999
- Orig file:
v2.3.25/linux/fs/bfs/file.c
- Orig date:
Mon Nov 1 13:56:27 1999
diff -u --recursive --new-file v2.3.25/linux/fs/bfs/file.c linux/fs/bfs/file.c
@@ -41,14 +41,14 @@
static int bfs_get_block(struct inode * inode, long block,
struct buffer_head * bh_result, int create)
{
- if (!create) {
+ long phys = inode->iu_sblock + block;
+ if (!create || phys <= inode->iu_eblock) {
bh_result->b_dev = inode->i_dev;
- bh_result->b_blocknr = inode->iu_sblock + block;
+ bh_result->b_blocknr = phys;
bh_result->b_state |= (1UL << BH_Mapped);
return 0;
- } else
- DBG(KERN_ERR "BFS-fs: %s(create=%d) impossible!\n",
- __FUNCTION__, create);
+ }
+ /* no support for file migration, working on it */
return -EIO;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)