freebsd-skq/sys/fs/ext2fs
Pedro F. Giffuni 70097aac13 Define ext2fs local types and use them.
Add definitions for e2fs_daddr_t, e4fs_daddr_t in addition
to the already existing e2fs_lbn_t and adjust them for ext4.
Other than making the code more readable these changes should
fix problems related to big filesystems.

Setting the proper types can be tricky so the process was
helped by looking at UFS. In our implementation, logical block
numbers can be negative and the code depends on it. In ext2,
block numbers are unsigned so it is convenient to keep
e2fs_daddr_t unsigned and use the complete 32 bits. In the
case of e4fs_daddr_t, while the value should be unsigned, for
ext4 we only need to support 48 bits so preserving an extra
bit from the sign is not an issue.

While here also drop the ext2_setblock() prototype that was
never used.

Discussed with:	mckusick, bde
MFC after:	3 weeks
2013-08-13 15:40:43 +00:00
..
ext2_alloc.c Define ext2fs local types and use them. 2013-08-13 15:40:43 +00:00
ext2_balloc.c Define ext2fs local types and use them. 2013-08-13 15:40:43 +00:00
ext2_bmap.c Define ext2fs local types and use them. 2013-08-13 15:40:43 +00:00
ext2_dinode.h Add read-only support for extents in ext2fs. 2013-08-12 21:34:48 +00:00
ext2_dir.h Initial implementation of the HTree directory index. 2013-07-06 18:28:06 +00:00
ext2_extents.c Add read-only support for extents in ext2fs. 2013-08-12 21:34:48 +00:00
ext2_extents.h Add read-only support for extents in ext2fs. 2013-08-12 21:34:48 +00:00
ext2_extern.h Define ext2fs local types and use them. 2013-08-13 15:40:43 +00:00
ext2_hash.c Small typo. 2013-08-08 22:07:59 +00:00
ext2_htree.c Fix some typos. 2013-07-07 01:32:52 +00:00
ext2_inode_cnv.c Add read-only support for extents in ext2fs. 2013-08-12 21:34:48 +00:00
ext2_inode.c Define ext2fs local types and use them. 2013-08-13 15:40:43 +00:00
ext2_lookup.c ext2fs: Return EINVAL for negative uio_offset as in UFS. 2013-07-25 19:37:49 +00:00
ext2_mount.h ext2fs: Remove unused em_e2fsb definition.. 2013-02-05 03:23:56 +00:00
ext2_subr.c Define ext2fs local types and use them. 2013-08-13 15:40:43 +00:00
ext2_vfsops.c Add read-only support for extents in ext2fs. 2013-08-12 21:34:48 +00:00
ext2_vnops.c Define ext2fs local types and use them. 2013-08-13 15:40:43 +00:00
ext2fs.h Add read-only support for extents in ext2fs. 2013-08-12 21:34:48 +00:00
fs.h Define and use e2fs_lbn_t in ext2fs. 2013-06-23 02:44:42 +00:00
htree.h Initial implementation of the HTree directory index. 2013-07-06 18:28:06 +00:00
inode.h Define ext2fs local types and use them. 2013-08-13 15:40:43 +00:00