]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/xfs/xfs_mount.c
xfs: fix might_sleep() warning when initialising per-ag tree
[karo-tx-linux.git] / fs / xfs / xfs_mount.c
index 2d811e57b3320771f05c460d03800860f347aa64..ef1233b096836726c4de05ede15dc6737c674e3a 100644 (file)
@@ -1254,7 +1254,7 @@ xfs_mountfs(
         * Allocate and initialize the per-ag data.
         */
        spin_lock_init(&mp->m_perag_lock);
-       INIT_RADIX_TREE(&mp->m_perag_tree, GFP_NOFS);
+       INIT_RADIX_TREE(&mp->m_perag_tree, GFP_ATOMIC);
        error = xfs_initialize_perag(mp, sbp->sb_agcount, &mp->m_maxagi);
        if (error) {
                cmn_err(CE_WARN, "XFS: Failed per-ag init: %d", error);