Commit e1f6ca11 authored by Darrick J. Wong's avatar Darrick J. Wong

xfs: rename m_inotbt_nores to m_finobt_nores

Rename this flag variable to imply more strongly that it's related to
the free inode btree (finobt) operation.  No functional changes.
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
parent 3b50086f
...@@ -281,7 +281,7 @@ xfs_ag_resv_init( ...@@ -281,7 +281,7 @@ xfs_ag_resv_init(
*/ */
ask = used = 0; ask = used = 0;
mp->m_inotbt_nores = true; mp->m_finobt_nores = true;
error = xfs_refcountbt_calc_reserves(mp, tp, agno, &ask, error = xfs_refcountbt_calc_reserves(mp, tp, agno, &ask,
&used); &used);
......
...@@ -124,7 +124,7 @@ xfs_finobt_alloc_block( ...@@ -124,7 +124,7 @@ xfs_finobt_alloc_block(
union xfs_btree_ptr *new, union xfs_btree_ptr *new,
int *stat) int *stat)
{ {
if (cur->bc_mp->m_inotbt_nores) if (cur->bc_mp->m_finobt_nores)
return xfs_inobt_alloc_block(cur, start, new, stat); return xfs_inobt_alloc_block(cur, start, new, stat);
return __xfs_inobt_alloc_block(cur, start, new, stat, return __xfs_inobt_alloc_block(cur, start, new, stat,
XFS_AG_RESV_METADATA); XFS_AG_RESV_METADATA);
...@@ -154,7 +154,7 @@ xfs_finobt_free_block( ...@@ -154,7 +154,7 @@ xfs_finobt_free_block(
struct xfs_btree_cur *cur, struct xfs_btree_cur *cur,
struct xfs_buf *bp) struct xfs_buf *bp)
{ {
if (cur->bc_mp->m_inotbt_nores) if (cur->bc_mp->m_finobt_nores)
return xfs_inobt_free_block(cur, bp); return xfs_inobt_free_block(cur, bp);
return __xfs_inobt_free_block(cur, bp, XFS_AG_RESV_METADATA); return __xfs_inobt_free_block(cur, bp, XFS_AG_RESV_METADATA);
} }
......
...@@ -1754,7 +1754,7 @@ xfs_inactive_ifree( ...@@ -1754,7 +1754,7 @@ xfs_inactive_ifree(
* now remains allocated and sits on the unlinked list until the fs is * now remains allocated and sits on the unlinked list until the fs is
* repaired. * repaired.
*/ */
if (unlikely(mp->m_inotbt_nores)) { if (unlikely(mp->m_finobt_nores)) {
error = xfs_trans_alloc(mp, &M_RES(mp)->tr_ifree, error = xfs_trans_alloc(mp, &M_RES(mp)->tr_ifree,
XFS_IFREE_SPACE_RES(mp), 0, XFS_TRANS_RESERVE, XFS_IFREE_SPACE_RES(mp), 0, XFS_TRANS_RESERVE,
&tp); &tp);
......
...@@ -138,7 +138,7 @@ typedef struct xfs_mount { ...@@ -138,7 +138,7 @@ typedef struct xfs_mount {
struct mutex m_growlock; /* growfs mutex */ struct mutex m_growlock; /* growfs mutex */
int m_fixedfsid[2]; /* unchanged for life of FS */ int m_fixedfsid[2]; /* unchanged for life of FS */
uint64_t m_flags; /* global mount flags */ uint64_t m_flags; /* global mount flags */
bool m_inotbt_nores; /* no per-AG finobt resv. */ bool m_finobt_nores; /* no per-AG finobt resv. */
int m_ialloc_inos; /* inodes in inode allocation */ int m_ialloc_inos; /* inodes in inode allocation */
int m_ialloc_blks; /* blocks in inode allocation */ int m_ialloc_blks; /* blocks in inode allocation */
int m_ialloc_min_blks;/* min blocks in sparse inode int m_ialloc_min_blks;/* min blocks in sparse inode
......
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