xfs: remove double-underscore integer types
This is a purely mechanical patch that removes the private __{u,}int{8,16,32,64}_t typedefs in favor of using the system {u,}int{8,16,32,64}_t typedefs. This is the sed script used to perform the transformation and fix the resulting whitespace and indentation errors: s/typedef\t__uint8_t/typedef __uint8_t\t/g s/typedef\t__uint/typedef __uint/g s/typedef\t__int\([0-9]*\)_t/typedef int\1_t\t/g s/__uint8_t\t/__uint8_t\t\t/g s/__uint/uint/g s/__int\([0-9]*\)_t\t/__int\1_t\t\t/g s/__int/int/g /^typedef.*int[0-9]*_t;$/d Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -602,7 +602,7 @@ xfs_growfs_data_private(
|
||||
if (nagimax)
|
||||
mp->m_maxagi = nagimax;
|
||||
if (mp->m_sb.sb_imax_pct) {
|
||||
__uint64_t icount = mp->m_sb.sb_dblocks * mp->m_sb.sb_imax_pct;
|
||||
uint64_t icount = mp->m_sb.sb_dblocks * mp->m_sb.sb_imax_pct;
|
||||
do_div(icount, 100);
|
||||
mp->m_maxicount = icount << mp->m_sb.sb_inopblog;
|
||||
} else
|
||||
@@ -793,17 +793,17 @@ xfs_fs_counts(
|
||||
int
|
||||
xfs_reserve_blocks(
|
||||
xfs_mount_t *mp,
|
||||
__uint64_t *inval,
|
||||
uint64_t *inval,
|
||||
xfs_fsop_resblks_t *outval)
|
||||
{
|
||||
__int64_t lcounter, delta;
|
||||
__int64_t fdblks_delta = 0;
|
||||
__uint64_t request;
|
||||
__int64_t free;
|
||||
int64_t lcounter, delta;
|
||||
int64_t fdblks_delta = 0;
|
||||
uint64_t request;
|
||||
int64_t free;
|
||||
int error = 0;
|
||||
|
||||
/* If inval is null, report current values and return */
|
||||
if (inval == (__uint64_t *)NULL) {
|
||||
if (inval == (uint64_t *)NULL) {
|
||||
if (!outval)
|
||||
return -EINVAL;
|
||||
outval->resblks = mp->m_resblks;
|
||||
@@ -904,7 +904,7 @@ out:
|
||||
int
|
||||
xfs_fs_goingdown(
|
||||
xfs_mount_t *mp,
|
||||
__uint32_t inflags)
|
||||
uint32_t inflags)
|
||||
{
|
||||
switch (inflags) {
|
||||
case XFS_FSOP_GOING_FLAGS_DEFAULT: {
|
||||
|
Reference in New Issue
Block a user