Commit a29a7506 authored by Mel Gorman's avatar Mel Gorman Committed by Linus Torvalds

mm/zbud: add kerneldoc fields for zbud_pool

make W=1 generates the following warning for zbud_pool

  mm/zbud.c:105: warning: Function parameter or member 'zpool' not described in 'zbud_pool'
  mm/zbud.c:105: warning: Function parameter or member 'zpool_ops' not described in 'zbud_pool'

Commit 479305fd ("zpool: remove zpool_evict()") removed the
zpool_evict helper and added the associated zpool and operations structure
in struct zbud_pool but did not add documentation for the fields.  Add
rudimentary documentation.

Link: https://lkml.kernel.org/r/20210520084809.8576-10-mgorman@techsingularity.net
Fixes: 479305fd ("zpool: remove zpool_evict()")
Signed-off-by: default avatarMel Gorman <mgorman@techsingularity.net>
Reviewed-by: default avatarYang Shi <shy828301@gmail.com>
Acked-by: default avatarVlastimil Babka <vbabka@suse.cz>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: David Hildenbrand <david@redhat.com>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5640c9ca
...@@ -92,6 +92,8 @@ struct zbud_ops { ...@@ -92,6 +92,8 @@ struct zbud_ops {
* @pages_nr: number of zbud pages in the pool. * @pages_nr: number of zbud pages in the pool.
* @ops: pointer to a structure of user defined operations specified at * @ops: pointer to a structure of user defined operations specified at
* pool creation time. * pool creation time.
* @zpool: zpool driver
* @zpool_ops: zpool operations structure with an evict callback
* *
* This structure is allocated at pool creation time and maintains metadata * This structure is allocated at pool creation time and maintains metadata
* pertaining to a particular zbud pool. * pertaining to a particular zbud pool.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment