mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
docs/core-api/mm: fix return value descriptions in mm/
Many kernel-doc comments in mm/ have the return value descriptions either misformatted or omitted at all which makes kernel-doc script unhappy: $ make V=1 htmldocs ... ./mm/util.c:36: info: Scanning doc for kstrdup ./mm/util.c:41: warning: No description found for return value of 'kstrdup' ./mm/util.c:57: info: Scanning doc for kstrdup_const ./mm/util.c:66: warning: No description found for return value of 'kstrdup_const' ./mm/util.c:75: info: Scanning doc for kstrndup ./mm/util.c:83: warning: No description found for return value of 'kstrndup' ... Fixing the formatting and adding the missing return value descriptions eliminates ~100 such warnings. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Mike Rapoport <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Jonathan Corbet <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
bc8ff3ca65
commit
a862f68a8b
12 changed files with 221 additions and 59 deletions
|
|
@ -270,7 +270,7 @@ static void wb_min_max_ratio(struct bdi_writeback *wb,
|
|||
* node_dirtyable_memory - number of dirtyable pages in a node
|
||||
* @pgdat: the node
|
||||
*
|
||||
* Returns the node's number of pages potentially available for dirty
|
||||
* Return: the node's number of pages potentially available for dirty
|
||||
* page cache. This is the base value for the per-node dirty limits.
|
||||
*/
|
||||
static unsigned long node_dirtyable_memory(struct pglist_data *pgdat)
|
||||
|
|
@ -355,7 +355,7 @@ static unsigned long highmem_dirtyable_memory(unsigned long total)
|
|||
/**
|
||||
* global_dirtyable_memory - number of globally dirtyable pages
|
||||
*
|
||||
* Returns the global number of pages potentially available for dirty
|
||||
* Return: the global number of pages potentially available for dirty
|
||||
* page cache. This is the base value for the global dirty limits.
|
||||
*/
|
||||
static unsigned long global_dirtyable_memory(void)
|
||||
|
|
@ -470,7 +470,7 @@ void global_dirty_limits(unsigned long *pbackground, unsigned long *pdirty)
|
|||
* node_dirty_limit - maximum number of dirty pages allowed in a node
|
||||
* @pgdat: the node
|
||||
*
|
||||
* Returns the maximum number of dirty pages allowed in a node, based
|
||||
* Return: the maximum number of dirty pages allowed in a node, based
|
||||
* on the node's dirtyable memory.
|
||||
*/
|
||||
static unsigned long node_dirty_limit(struct pglist_data *pgdat)
|
||||
|
|
@ -495,7 +495,7 @@ static unsigned long node_dirty_limit(struct pglist_data *pgdat)
|
|||
* node_dirty_ok - tells whether a node is within its dirty limits
|
||||
* @pgdat: the node to check
|
||||
*
|
||||
* Returns %true when the dirty pages in @pgdat are within the node's
|
||||
* Return: %true when the dirty pages in @pgdat are within the node's
|
||||
* dirty limit, %false if the limit is exceeded.
|
||||
*/
|
||||
bool node_dirty_ok(struct pglist_data *pgdat)
|
||||
|
|
@ -743,9 +743,6 @@ static void mdtc_calc_avail(struct dirty_throttle_control *mdtc,
|
|||
* __wb_calc_thresh - @wb's share of dirty throttling threshold
|
||||
* @dtc: dirty_throttle_context of interest
|
||||
*
|
||||
* Returns @wb's dirty limit in pages. The term "dirty" in the context of
|
||||
* dirty balancing includes all PG_dirty, PG_writeback and NFS unstable pages.
|
||||
*
|
||||
* Note that balance_dirty_pages() will only seriously take it as a hard limit
|
||||
* when sleeping max_pause per page is not enough to keep the dirty pages under
|
||||
* control. For example, when the device is completely stalled due to some error
|
||||
|
|
@ -759,6 +756,9 @@ static void mdtc_calc_avail(struct dirty_throttle_control *mdtc,
|
|||
*
|
||||
* The wb's share of dirty limit will be adapting to its throughput and
|
||||
* bounded by the bdi->min_ratio and/or bdi->max_ratio parameters, if set.
|
||||
*
|
||||
* Return: @wb's dirty limit in pages. The term "dirty" in the context of
|
||||
* dirty balancing includes all PG_dirty, PG_writeback and NFS unstable pages.
|
||||
*/
|
||||
static unsigned long __wb_calc_thresh(struct dirty_throttle_control *dtc)
|
||||
{
|
||||
|
|
@ -1918,7 +1918,9 @@ EXPORT_SYMBOL(balance_dirty_pages_ratelimited);
|
|||
* @wb: bdi_writeback of interest
|
||||
*
|
||||
* Determines whether background writeback should keep writing @wb or it's
|
||||
* clean enough. Returns %true if writeback should continue.
|
||||
* clean enough.
|
||||
*
|
||||
* Return: %true if writeback should continue.
|
||||
*/
|
||||
bool wb_over_bg_thresh(struct bdi_writeback *wb)
|
||||
{
|
||||
|
|
@ -2147,6 +2149,8 @@ EXPORT_SYMBOL(tag_pages_for_writeback);
|
|||
* lock/page writeback access order inversion - we should only ever lock
|
||||
* multiple pages in ascending page->index order, and looping back to the start
|
||||
* of the file violates that rule and causes deadlocks.
|
||||
*
|
||||
* Return: %0 on success, negative error code otherwise
|
||||
*/
|
||||
int write_cache_pages(struct address_space *mapping,
|
||||
struct writeback_control *wbc, writepage_t writepage,
|
||||
|
|
@ -2305,6 +2309,8 @@ static int __writepage(struct page *page, struct writeback_control *wbc,
|
|||
*
|
||||
* This is a library function, which implements the writepages()
|
||||
* address_space_operation.
|
||||
*
|
||||
* Return: %0 on success, negative error code otherwise
|
||||
*/
|
||||
int generic_writepages(struct address_space *mapping,
|
||||
struct writeback_control *wbc)
|
||||
|
|
@ -2351,6 +2357,8 @@ int do_writepages(struct address_space *mapping, struct writeback_control *wbc)
|
|||
*
|
||||
* Note that the mapping's AS_EIO/AS_ENOSPC flags will be cleared when this
|
||||
* function returns.
|
||||
*
|
||||
* Return: %0 on success, negative error code otherwise
|
||||
*/
|
||||
int write_one_page(struct page *page)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue