aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2020-04-09 22:17:22 +0800
committerSong Liu <songliubraving@fb.com>2020-05-13 11:22:31 -0700
commit7f8a30e5d253793d660f30b7475d7bb41efd40b8 (patch)
treeb438541aa96386cc3dd4966be9109dcb87a68205 /drivers/md/raid5.c
parentraid5: remove gfp flags from scribble_alloc() (diff)
downloadlinux-dev-7f8a30e5d253793d660f30b7475d7bb41efd40b8.tar.xz
linux-dev-7f8a30e5d253793d660f30b7475d7bb41efd40b8.zip
raid5: update code comment of scribble_alloc()
Code comments of scribble_alloc() is outdated for a while. This patch update the comments in function header for the new parameter list. Suggested-by: Song Liu <songliubraving@fb.com> Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 190dd70db514..ab8067f9ce8c 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -2215,10 +2215,13 @@ static int grow_stripes(struct r5conf *conf, int num)
}
/**
- * scribble_len - return the required size of the scribble region
+ * scribble_alloc - allocate percpu scribble buffer for required size
+ * of the scribble region
+ * @percpu - from for_each_present_cpu() of the caller
* @num - total number of disks in the array
+ * @cnt - scribble objs count for required size of the scribble region
*
- * The size must be enough to contain:
+ * The scribble buffer size must be enough to contain:
* 1/ a struct page pointer for each device in the array +2
* 2/ room to convert each entry in (1) to its corresponding dma
* (dma_map_page()) or page (page_address()) address.