diff options
author | Gu Zheng <guz.fnst@cn.fujitsu.com> | 2014-04-11 05:49:50 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-05-06 21:21:53 -0400 |
commit | 197d46476c3ba5f8595209025d20953a0c851748 (patch) | |
tree | 516095bdf4a400b1256a168ca192c7c71b7d4572 | |
parent | a4ed23f2f1a875f4b50d5f7e3dd5b0abbedda1ff (diff) |
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>
-rw-r--r-- | fs/f2fs/segment.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 524b7ed36e0a..ba067b1b8107 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c | |||
@@ -243,9 +243,7 @@ int f2fs_issue_flush(struct f2fs_sb_info *sbi) | |||
243 | if (!test_opt(sbi, FLUSH_MERGE)) | 243 | if (!test_opt(sbi, FLUSH_MERGE)) |
244 | return blkdev_issue_flush(sbi->sb->s_bdev, GFP_KERNEL, NULL); | 244 | return blkdev_issue_flush(sbi->sb->s_bdev, GFP_KERNEL, NULL); |
245 | 245 | ||
246 | cmd = f2fs_kmem_cache_alloc(flush_cmd_slab, GFP_ATOMIC); | 246 | cmd = f2fs_kmem_cache_alloc(flush_cmd_slab, GFP_ATOMIC | __GFP_ZERO); |
247 | cmd->next = NULL; | ||
248 | cmd->ret = 0; | ||
249 | init_completion(&cmd->wait); | 247 | init_completion(&cmd->wait); |
250 | 248 | ||
251 | spin_lock(&sm_i->issue_lock); | 249 | spin_lock(&sm_i->issue_lock); |