You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
f2fs: use __GFP_ZERO to avoid appending set-NULL
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
This commit is contained in:
+1
-3
@@ -243,9 +243,7 @@ int f2fs_issue_flush(struct f2fs_sb_info *sbi)
|
|||||||
if (!test_opt(sbi, FLUSH_MERGE))
|
if (!test_opt(sbi, FLUSH_MERGE))
|
||||||
return blkdev_issue_flush(sbi->sb->s_bdev, GFP_KERNEL, NULL);
|
return blkdev_issue_flush(sbi->sb->s_bdev, GFP_KERNEL, NULL);
|
||||||
|
|
||||||
cmd = f2fs_kmem_cache_alloc(flush_cmd_slab, GFP_ATOMIC);
|
cmd = f2fs_kmem_cache_alloc(flush_cmd_slab, GFP_ATOMIC | __GFP_ZERO);
|
||||||
cmd->next = NULL;
|
|
||||||
cmd->ret = 0;
|
|
||||||
init_completion(&cmd->wait);
|
init_completion(&cmd->wait);
|
||||||
|
|
||||||
spin_lock(&sm_i->issue_lock);
|
spin_lock(&sm_i->issue_lock);
|
||||||
|
|||||||
Reference in New Issue
Block a user