OSDN Git Service

docs: Use the kerneldoc comments for memalloc_no*()
authorJonathan Corbet <corbet@lwn.net>
Tue, 29 May 2018 11:44:58 +0000 (05:44 -0600)
committerJonathan Corbet <corbet@lwn.net>
Tue, 29 May 2018 12:45:55 +0000 (06:45 -0600)
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>
Documentation/core-api/gfp_mask-from-fs-io.rst

index 2dc442b..e0df8f4 100644 (file)
@@ -33,6 +33,11 @@ section from a filesystem or I/O point of view. Any allocation from that
 scope will inherently drop __GFP_FS respectively __GFP_IO from the given
 mask so no memory allocation can recurse back in the FS/IO.
 
+.. kernel-doc:: include/linux/sched/mm.h
+   :functions: memalloc_nofs_save memalloc_nofs_restore
+.. kernel-doc:: include/linux/sched/mm.h
+   :functions: memalloc_noio_save memalloc_noio_restore
+
 FS/IO code then simply calls the appropriate save function before
 any critical section with respect to the reclaim is started - e.g.
 lock shared with the reclaim context or when a transaction context