mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
UFS fs.h: clear warning from use in makefs(1)
makefs(1) has a number of signedness warnings (when built with higher WARNS), most of which can be addressed by careful application of casts in makefs itself. There is one case where a signedness warning arises from the blksize macro, so must be addressed in the macro itself. Reviewed by: kib, mckusick MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D10589
This commit is contained in:
parent
5207c6ac74
commit
3cf259c390
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317832
@ -608,7 +608,8 @@ struct cg {
|
||||
* Determining the size of a file block in the filesystem.
|
||||
*/
|
||||
#define blksize(fs, ip, lbn) \
|
||||
(((lbn) >= UFS_NDADDR || (ip)->i_size >= smalllblktosize(fs, (lbn) + 1)) \
|
||||
(((lbn) >= UFS_NDADDR || (ip)->i_size >= \
|
||||
(uint64_t)smalllblktosize(fs, (lbn) + 1)) \
|
||||
? (fs)->fs_bsize \
|
||||
: (fragroundup(fs, blkoff(fs, (ip)->i_size))))
|
||||
#define sblksize(fs, size, lbn) \
|
||||
|
Loading…
Reference in New Issue
Block a user