summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/discard.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2021-01-22 10:57:57 +0100
committerDavid Sterba <dsterba@suse.com>2021-02-08 22:58:53 +0100
commit92419695478b6a75ca85e9f8e06b08a4a35bfb20 (patch)
treef02e010694d0a6e8a0325b0b02184ab7a5daa6e8 /fs/btrfs/discard.c
parentbtrfs: improve parameter description for __btrfs_write_out_cache (diff)
downloadlinux-92419695478b6a75ca85e9f8e06b08a4a35bfb20.tar.xz
linux-92419695478b6a75ca85e9f8e06b08a4a35bfb20.zip
btrfs: document now parameter of peek_discard_list
Fixes fs/btrfs/discard.c:203: warning: Function parameter or member 'now' not described in 'peek_discard_list' Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/discard.c')
-rw-r--r--fs/btrfs/discard.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/discard.c b/fs/btrfs/discard.c
index 2b8383d41144..306ff20af70f 100644
--- a/fs/btrfs/discard.c
+++ b/fs/btrfs/discard.c
@@ -185,10 +185,12 @@ static struct btrfs_block_group *find_next_block_group(
}
/**
- * peek_discard_list - wrap find_next_block_group()
- * @discard_ctl: discard control
+ * Wrap find_next_block_group()
+ *
+ * @discard_ctl: discard control
* @discard_state: the discard_state of the block_group after state management
* @discard_index: the discard_index of the block_group after state management
+ * @now: time when discard was invoked, in ns
*
* This wraps find_next_block_group() and sets the block_group to be in use.
* discard_state's control flow is managed here. Variables related to