diff options
| -rw-r--r-- | fs/xfs/xfs_buf.c | 2 | ||||
| -rw-r--r-- | fs/xfs/xfs_da_btree.c | 6 | ||||
| -rw-r--r-- | fs/xfs/xfs_dir2_leaf.c | 2 | ||||
| -rw-r--r-- | fs/xfs/xfs_log_cil.c | 2 |
4 files changed, 7 insertions, 5 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 82b70bda9f47..0d2554299688 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c | |||
| @@ -1649,7 +1649,7 @@ xfs_alloc_buftarg( | |||
| 1649 | { | 1649 | { |
| 1650 | xfs_buftarg_t *btp; | 1650 | xfs_buftarg_t *btp; |
| 1651 | 1651 | ||
| 1652 | btp = kmem_zalloc(sizeof(*btp), KM_SLEEP); | 1652 | btp = kmem_zalloc(sizeof(*btp), KM_SLEEP | KM_NOFS); |
| 1653 | 1653 | ||
| 1654 | btp->bt_mount = mp; | 1654 | btp->bt_mount = mp; |
| 1655 | btp->bt_dev = bdev->bd_dev; | 1655 | btp->bt_dev = bdev->bd_dev; |
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c index 9b26a99ebfe9..41ea7e14a7b6 100644 --- a/fs/xfs/xfs_da_btree.c +++ b/fs/xfs/xfs_da_btree.c | |||
| @@ -2464,7 +2464,8 @@ xfs_buf_map_from_irec( | |||
| 2464 | ASSERT(nirecs >= 1); | 2464 | ASSERT(nirecs >= 1); |
| 2465 | 2465 | ||
| 2466 | if (nirecs > 1) { | 2466 | if (nirecs > 1) { |
| 2467 | map = kmem_zalloc(nirecs * sizeof(struct xfs_buf_map), KM_SLEEP); | 2467 | map = kmem_zalloc(nirecs * sizeof(struct xfs_buf_map), |
| 2468 | KM_SLEEP | KM_NOFS); | ||
| 2468 | if (!map) | 2469 | if (!map) |
| 2469 | return ENOMEM; | 2470 | return ENOMEM; |
| 2470 | *mapp = map; | 2471 | *mapp = map; |
| @@ -2520,7 +2521,8 @@ xfs_dabuf_map( | |||
| 2520 | * Optimize the one-block case. | 2521 | * Optimize the one-block case. |
| 2521 | */ | 2522 | */ |
| 2522 | if (nfsb != 1) | 2523 | if (nfsb != 1) |
| 2523 | irecs = kmem_zalloc(sizeof(irec) * nfsb, KM_SLEEP); | 2524 | irecs = kmem_zalloc(sizeof(irec) * nfsb, |
| 2525 | KM_SLEEP | KM_NOFS); | ||
| 2524 | 2526 | ||
| 2525 | nirecs = nfsb; | 2527 | nirecs = nfsb; |
| 2526 | error = xfs_bmapi_read(dp, (xfs_fileoff_t)bno, nfsb, irecs, | 2528 | error = xfs_bmapi_read(dp, (xfs_fileoff_t)bno, nfsb, irecs, |
diff --git a/fs/xfs/xfs_dir2_leaf.c b/fs/xfs/xfs_dir2_leaf.c index 721ba2fe8e54..da71a1819d78 100644 --- a/fs/xfs/xfs_dir2_leaf.c +++ b/fs/xfs/xfs_dir2_leaf.c | |||
| @@ -1336,7 +1336,7 @@ xfs_dir2_leaf_getdents( | |||
| 1336 | mp->m_sb.sb_blocksize); | 1336 | mp->m_sb.sb_blocksize); |
| 1337 | map_info = kmem_zalloc(offsetof(struct xfs_dir2_leaf_map_info, map) + | 1337 | map_info = kmem_zalloc(offsetof(struct xfs_dir2_leaf_map_info, map) + |
| 1338 | (length * sizeof(struct xfs_bmbt_irec)), | 1338 | (length * sizeof(struct xfs_bmbt_irec)), |
| 1339 | KM_SLEEP); | 1339 | KM_SLEEP | KM_NOFS); |
| 1340 | map_info->map_size = length; | 1340 | map_info->map_size = length; |
| 1341 | 1341 | ||
| 1342 | /* | 1342 | /* |
diff --git a/fs/xfs/xfs_log_cil.c b/fs/xfs/xfs_log_cil.c index e3d0b85d852b..d0833b54e55d 100644 --- a/fs/xfs/xfs_log_cil.c +++ b/fs/xfs/xfs_log_cil.c | |||
| @@ -139,7 +139,7 @@ xlog_cil_prepare_log_vecs( | |||
| 139 | 139 | ||
| 140 | new_lv = kmem_zalloc(sizeof(*new_lv) + | 140 | new_lv = kmem_zalloc(sizeof(*new_lv) + |
| 141 | niovecs * sizeof(struct xfs_log_iovec), | 141 | niovecs * sizeof(struct xfs_log_iovec), |
| 142 | KM_SLEEP); | 142 | KM_SLEEP|KM_NOFS); |
| 143 | 143 | ||
| 144 | /* The allocated iovec region lies beyond the log vector. */ | 144 | /* The allocated iovec region lies beyond the log vector. */ |
| 145 | new_lv->lv_iovecp = (struct xfs_log_iovec *)&new_lv[1]; | 145 | new_lv->lv_iovecp = (struct xfs_log_iovec *)&new_lv[1]; |
