Skip to content

Commit d43f2c9

Browse files
author
Jonathan Corbet
committed
docs: Use the kerneldoc comments for memalloc_no*()
Now that we have kerneldoc comments for memalloc_no{fs,io}_{save_restore}(), go ahead and pull them into the docs. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 46ca359 commit d43f2c9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎Documentation/core-api/gfp_mask-from-fs-io.rst‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ section from a filesystem or I/O point of view. Any allocation from that
3333
scope will inherently drop __GFP_FS respectively __GFP_IO from the given
3434
mask so no memory allocation can recurse back in the FS/IO.
3535

36+
.. kernel-doc:: include/linux/sched/mm.h
37+
:functions: memalloc_nofs_save memalloc_nofs_restore
38+
.. kernel-doc:: include/linux/sched/mm.h
39+
:functions: memalloc_noio_save memalloc_noio_restore
40+
3641
FS/IO code then simply calls the appropriate save function before
3742
any critical section with respect to the reclaim is started - e.g.
3843
lock shared with the reclaim context or when a transaction context

0 commit comments

Comments
 (0)