Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67ebfab1 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

f2fs: use GFP_F2FS_ZERO for cleanup



Clean up codes with GFP_F2FS_ZERO, no logic changes.

Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 2ebcc5d8
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -143,11 +143,9 @@ static struct nat_entry *__alloc_nat_entry(nid_t nid, bool no_fail)
	struct nat_entry *new;

	if (no_fail)
		new = f2fs_kmem_cache_alloc(nat_entry_slab,
						GFP_NOFS | __GFP_ZERO);
		new = f2fs_kmem_cache_alloc(nat_entry_slab, GFP_F2FS_ZERO);
	else
		new = kmem_cache_alloc(nat_entry_slab,
						GFP_NOFS | __GFP_ZERO);
		new = kmem_cache_alloc(nat_entry_slab, GFP_F2FS_ZERO);
	if (new) {
		nat_set_nid(new, nid);
		nat_reset_flag(new);