Skip to contentSkip to conversation

reiserfs: Replace kmalloc with kcalloc in the comment

PATCH In review Yi Wang 2 participants 2 messages May 29, 2020

lore
Share & tools
lore

Yi Wang

author
#0 lore raw

PATCH 1/1 reiserfs: Replace kmalloc with kcalloc in the comment

From: Liao Pingfang <[email protected]>

Use kcalloc instead of kmalloc in the comment according to the previous kcalloc() call.

---
 fs/reiserfs/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/reiserfs/inode.c +1 -1
index 6419e6d..21ad762 100644
@@ -1066,7 +1066,7 @@ int reiserfs_get_block(struct inode *inode, sector_t block,
 			} else {
 				/* paste hole to the indirect item */
 				/*
-				 * If kmalloc failed, max_to_insert becomes
+				 * If kcalloc failed, max_to_insert becomes
 				 * zero and it means we only have space for
 				 * one block
 				 */
Signature · 1 line
2.9.5
#1 lore raw
Quoted 6 lines · Yi Wang

From: Liao Pingfang <[email protected]>

Use kcalloc instead of kmalloc in the comment according to the previous kcalloc() call.

Thanks. I've added the patch to my tree.

Honza

Quoted 20 lines
---
 fs/reiserfs/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/reiserfs/inode.c +1 -1
index 6419e6d..21ad762 100644
@@ -1066,7 +1066,7 @@ int reiserfs_get_block(struct inode *inode, sector_t block,
 			} else {
 				/* paste hole to the indirect item */
 				/*
-				 * If kmalloc failed, max_to_insert becomes
+				 * If kcalloc failed, max_to_insert becomes
 				 * zero and it means we only have space for
 				 * one block
 				 */
Signature · 1 line
2.9.5
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR