]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bcachefs: Add missing parameter description to bch2_bucket_alloc_trans()
authorYang Li <yang.lee@linux.alibaba.com>
Fri, 29 Nov 2024 06:38:27 +0000 (14:38 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:21 +0000 (01:36 -0500)
The function bch2_bucket_alloc_trans() lacked a description for the
nowait parameter in its documentation comment block. This patch adds the
missing description to ensure all parameters are properly documented.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=12179
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_foreground.c

index c40a76df76b85747498f6b525a92eb3b05c70588..095bfe7c53bda2e4ebc6aab0696ffd1805723c89 100644 (file)
@@ -505,6 +505,7 @@ static noinline void trace_bucket_alloc2(struct bch_fs *c, struct bch_dev *ca,
  * @watermark: how important is this allocation?
  * @data_type: BCH_DATA_journal, btree, user...
  * @cl:                if not NULL, closure to be used to wait if buckets not available
+ * @nowait:    if true, do not wait for buckets to become available
  * @usage:     for secondarily also returning the current device usage
  *
  * Returns:    an open_bucket on success, or an ERR_PTR() on failure.