aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/ext2fs/ext2_balloc.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2013-06-23 02:44:42 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2013-06-23 02:44:42 +0000
commitda057ed2d3d1da82971ba856b91bc22988c9a458 (patch)
tree8e1f600a10432cd8eb791ceb35beb5ba9a6f7ae4 /sys/fs/ext2fs/ext2_balloc.c
parent13f89623532b1543938b8e7ec424b1f98f98784c (diff)
downloadsrc-da057ed2d3d1da82971ba856b91bc22988c9a458.tar.gz
src-da057ed2d3d1da82971ba856b91bc22988c9a458.zip
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
Notes
Notes: svn path=/head/; revision=252103
Diffstat (limited to 'sys/fs/ext2fs/ext2_balloc.c')
-rw-r--r--sys/fs/ext2fs/ext2_balloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/ext2fs/ext2_balloc.c b/sys/fs/ext2fs/ext2_balloc.c
index c71de89ad255..d1efc685e3ff 100644
--- a/sys/fs/ext2fs/ext2_balloc.c
+++ b/sys/fs/ext2fs/ext2_balloc.c
@@ -57,7 +57,7 @@
* the inode and the logical block number in a file.
*/
int
-ext2_balloc(struct inode *ip, int32_t lbn, int size, struct ucred *cred,
+ext2_balloc(struct inode *ip, e2fs_lbn_t lbn, int size, struct ucred *cred,
struct buf **bpp, int flags)
{
struct m_ext2fs *fs;