Commit 15574ebb authored by Gao Xiang's avatar Gao Xiang Committed by Darrick J. Wong

xfs: convert noroom, okalloc in xfs_dialloc() to bool

Boolean is preferred for such use.
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Signed-off-by: default avatarGao Xiang <hsiangkao@redhat.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent 207ddc0e
...@@ -1716,11 +1716,11 @@ xfs_dialloc( ...@@ -1716,11 +1716,11 @@ xfs_dialloc(
xfs_agnumber_t agno; xfs_agnumber_t agno;
int error; int error;
int ialloced; int ialloced;
int noroom = 0; bool noroom = false;
xfs_agnumber_t start_agno; xfs_agnumber_t start_agno;
struct xfs_perag *pag; struct xfs_perag *pag;
struct xfs_ino_geometry *igeo = M_IGEO(mp); struct xfs_ino_geometry *igeo = M_IGEO(mp);
int okalloc = 1; bool okalloc = true;
if (*IO_agbp) { if (*IO_agbp) {
/* /*
...@@ -1753,8 +1753,8 @@ xfs_dialloc( ...@@ -1753,8 +1753,8 @@ xfs_dialloc(
if (igeo->maxicount && if (igeo->maxicount &&
percpu_counter_read_positive(&mp->m_icount) + igeo->ialloc_inos percpu_counter_read_positive(&mp->m_icount) + igeo->ialloc_inos
> igeo->maxicount) { > igeo->maxicount) {
noroom = 1; noroom = true;
okalloc = 0; okalloc = false;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment