summaryrefslogtreecommitdiffstats
path: root/sys/fs/ext2fs/ext2_extern.h
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2013-06-23 02:44:42 +0000
committerpfg <pfg@FreeBSD.org>2013-06-23 02:44:42 +0000
commit456a58318f772df57faf95799c77f849e8e59e16 (patch)
tree8e1f600a10432cd8eb791ceb35beb5ba9a6f7ae4 /sys/fs/ext2fs/ext2_extern.h
parente08b36714da1c89099fd71e59285ea45d7700416 (diff)
downloadFreeBSD-src-456a58318f772df57faf95799c77f849e8e59e16.zip
FreeBSD-src-456a58318f772df57faf95799c77f849e8e59e16.tar.gz
Define and use e2fs_lbn_t in ext2fs.
In line to what is done in UFS, define an internal type e2fs_lbn_t for the logical block numbers. This change is basically a no-op as the new type is unchanged (int32_t) but it may be useful as bumping this may be required for ext4fs. Also, as pointed out by Bruce Evans: -Use daddr_t for daddr in ext2_bmaparray(). This seems to improve reliability with the reallocblks option. - Add a cast to the fsbtodb() macro as in UFS. Reviewed by: bde MFC after: 3 days
Diffstat (limited to 'sys/fs/ext2fs/ext2_extern.h')
-rw-r--r--sys/fs/ext2fs/ext2_extern.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/ext2fs/ext2_extern.h b/sys/fs/ext2fs/ext2_extern.h
index d3ab058..95ba9e4 100644
--- a/sys/fs/ext2fs/ext2_extern.h
+++ b/sys/fs/ext2fs/ext2_extern.h
@@ -49,10 +49,10 @@ struct vnode;
int ext2_alloc(struct inode *,
int32_t, int32_t, int, struct ucred *, int32_t *);
int ext2_balloc(struct inode *,
- int32_t, int, struct ucred *, struct buf **, int);
+ e2fs_lbn_t, int, struct ucred *, struct buf **, int);
int ext2_blkatoff(struct vnode *, off_t, char **, struct buf **);
void ext2_blkfree(struct inode *, int32_t, long);
-int32_t ext2_blkpref(struct inode *, int32_t, int, int32_t *, int32_t);
+int32_t ext2_blkpref(struct inode *, e2fs_lbn_t, int, int32_t *, int32_t);
int ext2_bmap(struct vop_bmap_args *);
int ext2_bmaparray(struct vnode *, int32_t, int32_t *, int *, int *);
void ext2_clusteracct(struct m_ext2fs *, char *, int, daddr_t, int);
OpenPOWER on IntegriCloud