xfs: I/O completion handlers must use NOFS allocations
[linux-2.6-block.git] / fs / xfs / xfs_mount.c
index 8b6c9e807efb7b8a47bf493563bd5d8dadde3f4f..4d509f742bd20aba743310378c8c5a8a2b327363 100644 (file)
@@ -1471,7 +1471,7 @@ xfs_log_sbcount(
        if (!xfs_sb_version_haslazysbcount(&mp->m_sb))
                return 0;
 
-       tp = _xfs_trans_alloc(mp, XFS_TRANS_SB_COUNT);
+       tp = _xfs_trans_alloc(mp, XFS_TRANS_SB_COUNT, KM_SLEEP);
        error = xfs_trans_reserve(tp, 0, mp->m_sb.sb_sectsize + 128, 0, 0,
                                        XFS_DEFAULT_LOG_COUNT);
        if (error) {