forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
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;
....@@ -367,7 +367,7 @@
367367 * If this is a metadata allocation, try to reuse the busy
368368 * extent instead of trimming the allocation.
369369 */
370
- if (!xfs_alloc_is_userdata(args->datatype) &&
370
+ if (!(args->datatype & XFS_ALLOC_USERDATA) &&
371371 !(busyp->flags & XFS_EXTENT_BUSY_DISCARDED)) {
372372 if (!xfs_extent_busy_update_extent(args->mp, args->pag,
373373 busyp, fbno, flen,