summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_extent_busy.c
diff options
context:
space:
mode:
authorChristoph Hellwig2017-02-07 23:06:46 +0100
committerDarrick J. Wong2017-02-09 19:50:25 +0100
commit5e30c23d13919a718b22d4921dc5c0accc59da27 (patch)
treeff415885bfd2a03df480855e3e367943a0fa8bd8 /fs/xfs/xfs_extent_busy.c
parentxfs: correct null checks and error processing in xfs_initialize_perag (diff)
downloadkernel-qcow2-linux-5e30c23d13919a718b22d4921dc5c0accc59da27.tar.gz
kernel-qcow2-linux-5e30c23d13919a718b22d4921dc5c0accc59da27.tar.xz
kernel-qcow2-linux-5e30c23d13919a718b22d4921dc5c0accc59da27.zip
xfs: don't fail xfs_extent_busy allocation
We don't just need the structure to track busy extents which can be avoided with a synchronous transaction, but also to keep track of pending discard. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_extent_busy.c')
-rw-r--r--fs/xfs/xfs_extent_busy.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/fs/xfs/xfs_extent_busy.c b/fs/xfs/xfs_extent_busy.c
index 162dc186cf04..29c2f997aedf 100644
--- a/fs/xfs/xfs_extent_busy.c
+++ b/fs/xfs/xfs_extent_busy.c
@@ -45,18 +45,7 @@ xfs_extent_busy_insert(
struct rb_node **rbp;
struct rb_node *parent = NULL;
- new = kmem_zalloc(sizeof(struct xfs_extent_busy), KM_MAYFAIL);
- if (!new) {
- /*
- * No Memory! Since it is now not possible to track the free
- * block, make this a synchronous transaction to insure that
- * the block is not reused before this transaction commits.
- */
- trace_xfs_extent_busy_enomem(tp->t_mountp, agno, bno, len);
- xfs_trans_set_sync(tp);
- return;
- }
-
+ new = kmem_zalloc(sizeof(struct xfs_extent_busy), KM_SLEEP);
new->agno = agno;
new->bno = bno;
new->length = len;