]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: set m_finobt_nores when initializing library
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 6 Jun 2019 13:58:50 +0000 (08:58 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 6 Jun 2019 13:58:50 +0000 (08:58 -0500)
We don't generally set up per-ag reservations in userspace, so set this
flag to true to force transactions to set up block reservations.  This
isn't necessary for userspace (since we never touch the finobt) but we
shouldn't leave a logic bomb.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/init.c

index 2f6decc80b9fe74c65d593e2c21bd10c67f53508..1baccb31d2feda096cb7a0c7d2c128fb9d17788b 100644 (file)
@@ -640,6 +640,7 @@ libxfs_mount(
 
        libxfs_buftarg_init(mp, dev, logdev, rtdev);
 
+       mp->m_finobt_nores = true;
        mp->m_flags = (LIBXFS_MOUNT_32BITINODES|LIBXFS_MOUNT_32BITINOOPT);
        mp->m_sb = *sb;
        INIT_RADIX_TREE(&mp->m_perag_tree, GFP_KERNEL);