mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Use an explicitly-sized type instead of daddr_t for on-disk block
numbers.
This commit is contained in:
parent
c4aa5b8efe
commit
95431d3d42
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96941
@ -600,7 +600,7 @@ block_map(struct open_file *f, daddr_t file_block, daddr_t *disk_block_p)
|
||||
struct file *fp = (struct file *)f->f_fsdata;
|
||||
struct ext2fs *fs = fp->f_fs;
|
||||
daddr_t ind_block_num;
|
||||
daddr_t *ind_p;
|
||||
int32_t *ind_p;
|
||||
int idx, level;
|
||||
int error;
|
||||
|
||||
@ -674,7 +674,7 @@ block_map(struct open_file *f, daddr_t file_block, daddr_t *disk_block_p)
|
||||
fp->f_blkno[level] = ind_block_num;
|
||||
}
|
||||
|
||||
ind_p = (daddr_t *)fp->f_blk[level];
|
||||
ind_p = (int32_t *)fp->f_blk[level];
|
||||
|
||||
if (level > 0) {
|
||||
idx = file_block / fp->f_nindir[level - 1];
|
||||
|
Loading…
Reference in New Issue
Block a user