hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/fs/xfs/xfs_extent_busy.c
....@@ -33,7 +33,7 @@
3333 struct rb_node **rbp;
3434 struct rb_node *parent = NULL;
3535
36
- new = kmem_zalloc(sizeof(struct xfs_extent_busy), KM_SLEEP);
36
+ new = kmem_zalloc(sizeof(struct xfs_extent_busy), 0);
3737 new->agno = agno;
3838 new->bno = bno;
3939 new->length = len;
....@@ -344,7 +344,6 @@
344344 ASSERT(*len > 0);
345345
346346 spin_lock(&args->pag->pagb_lock);
347
-restart:
348347 fbno = *bno;
349348 flen = *len;
350349 rbp = args->pag->pagb_tree.rb_node;
....@@ -360,19 +359,6 @@
360359 continue;
361360 } else if (fbno >= bend) {
362361 rbp = rbp->rb_right;
363
- continue;
364
- }
365
-
366
- /*
367
- * If this is a metadata allocation, try to reuse the busy
368
- * extent instead of trimming the allocation.
369
- */
370
- if (!xfs_alloc_is_userdata(args->datatype) &&
371
- !(busyp->flags & XFS_EXTENT_BUSY_DISCARDED)) {
372
- if (!xfs_extent_busy_update_extent(args->mp, args->pag,
373
- busyp, fbno, flen,
374
- false))
375
- goto restart;
376362 continue;
377363 }
378364