diff options
-rw-r--r-- | fs/xfs/xfs_extent_busy.c | 13 |
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( | |||
45 | struct rb_node **rbp; | 45 | struct rb_node **rbp; |
46 | struct rb_node *parent = NULL; | 46 | struct rb_node *parent = NULL; |
47 | 47 | ||
48 | new = kmem_zalloc(sizeof(struct xfs_extent_busy), KM_MAYFAIL); | 48 | new = kmem_zalloc(sizeof(struct xfs_extent_busy), KM_SLEEP); |
49 | if (!new) { | ||
50 | /* | ||
51 | * No Memory! Since it is now not possible to track the free | ||
52 | * block, make this a synchronous transaction to insure that | ||
53 | * the block is not reused before this transaction commits. | ||
54 | */ | ||
55 | trace_xfs_extent_busy_enomem(tp->t_mountp, agno, bno, len); | ||
56 | xfs_trans_set_sync(tp); | ||
57 | return; | ||
58 | } | ||
59 | |||
60 | new->agno = agno; | 49 | new->agno = agno; |
61 | new->bno = bno; | 50 | new->bno = bno; |
62 | new->length = len; | 51 | new->length = len; |