File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ typedef unsigned __bitwise xfs_km_flags_t;
1919#define KM_NOFS ((__force xfs_km_flags_t)0x0004u)
2020#define KM_MAYFAIL ((__force xfs_km_flags_t)0x0008u)
2121#define KM_ZERO ((__force xfs_km_flags_t)0x0010u)
22+ #define KM_NOLOCKDEP ((__force xfs_km_flags_t)0x0020u)
2223
2324/*
2425 * We use a special process flag to avoid recursive callbacks into
@@ -30,7 +31,7 @@ kmem_flags_convert(xfs_km_flags_t flags)
3031{
3132 gfp_t lflags ;
3233
33- BUG_ON (flags & ~(KM_NOFS | KM_MAYFAIL | KM_ZERO ));
34+ BUG_ON (flags & ~(KM_NOFS | KM_MAYFAIL | KM_ZERO | KM_NOLOCKDEP ));
3435
3536 lflags = GFP_KERNEL | __GFP_NOWARN ;
3637 if (flags & KM_NOFS )
@@ -49,6 +50,9 @@ kmem_flags_convert(xfs_km_flags_t flags)
4950 if (flags & KM_ZERO )
5051 lflags |= __GFP_ZERO ;
5152
53+ if (flags & KM_NOLOCKDEP )
54+ lflags |= __GFP_NOLOCKDEP ;
55+
5256 return lflags ;
5357}
5458
Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ xfs_attr_copy_value(
488488 }
489489
490490 if (!args -> value ) {
491- args -> value = kmem_alloc_large (valuelen , 0 );
491+ args -> value = kmem_alloc_large (valuelen , KM_NOLOCKDEP );
492492 if (!args -> value )
493493 return - ENOMEM ;
494494 }
You can’t perform that action at this time.
0 commit comments