patch-2.4.0-test2 linux/fs/adfs/inode.c
Next file: linux/fs/adfs/map.c
Previous file: linux/fs/adfs/file.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Wed Jun 21 10:10:02 2000
- Orig file:
v2.4.0-test1/linux/fs/adfs/inode.c
- Orig date:
Thu May 11 15:30:08 2000
diff -u --recursive --new-file v2.4.0-test1/linux/fs/adfs/inode.c linux/fs/adfs/inode.c
@@ -19,7 +19,6 @@
* Lookup/Create a block at offset 'block' into 'inode'. We currently do
* not support creation of new blocks, so we return -EIO for this case.
*/
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0)
int
adfs_get_block(struct inode *inode, long block, struct buffer_head *bh, int create)
{
@@ -78,16 +77,6 @@
commit_write: generic_commit_write,
bmap: _adfs_bmap
};
-
-#else
-int adfs_bmap(struct inode *inode, int block)
-{
- if (block >= inode->i_blocks)
- return 0;
-
- return __adfs_block_map(inode->i_sb, inode->i_ino, block);
-}
-#endif
static inline unsigned int
adfs_filetype(struct inode *inode)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)