]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: rename m_inotbt_nores to m_finobt_nores
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 6 May 2019 22:00:28 +0000 (18:00 -0400)
committerEric Sandeen <sandeen@redhat.com>
Mon, 6 May 2019 22:00:28 +0000 (18:00 -0400)
Source kernel commit: e1f6ca11381588e3ef138c10de60eeb34cb8466a

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: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_mount.h
libxfs/xfs_ag_resv.c
libxfs/xfs_ialloc_btree.c

index 8651d6a856a67f9e6d25e3a229f3079d69641aaa..d1fd7a690f0eb7daf74423bfa1cbdba6afa8730b 100644 (file)
@@ -77,7 +77,7 @@ typedef struct xfs_mount {
        uint                    m_ag_max_usable; /* max space per AG */
        struct radix_tree_root  m_perag_tree;
        uint                    m_flags;        /* global mount flags */
-       bool                    m_inotbt_nores; /* no per-AG finobt resv. */
+       bool                    m_finobt_nores; /* no per-AG finobt resv. */
        uint                    m_qflags;       /* quota status flags */
        uint                    m_attroffset;   /* inode attribute offset */
        int                     m_ialloc_inos;  /* inodes in inode allocation */
index 1544a9e8ec6df164eb8494c99645cb11a7fe3293..62429186f5b8936f3114528ca207177217e04471 100644 (file)
@@ -280,7 +280,7 @@ xfs_ag_resv_init(
                         */
                        ask = used = 0;
 
-                       mp->m_inotbt_nores = true;
+                       mp->m_finobt_nores = true;
 
                        error = xfs_refcountbt_calc_reserves(mp, tp, agno, &ask,
                                        &used);
index 84acf16828657f3a36539098e19d088628ded0b5..599c79da51cbe31b2de8baa4c5506273d6424bf1 100644 (file)
@@ -123,7 +123,7 @@ xfs_finobt_alloc_block(
        union xfs_btree_ptr     *new,
        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,
                        XFS_AG_RESV_METADATA);
@@ -153,7 +153,7 @@ xfs_finobt_free_block(
        struct xfs_btree_cur    *cur,
        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, XFS_AG_RESV_METADATA);
 }