diff options
author | Chao Yu <chao2.yu@samsung.com> | 2013-12-04 20:54:00 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-12-22 20:18:05 -0500 |
commit | a0acdfe05a954363861a65eb537573ab417cb7ed (patch) | |
tree | 9901ea8baa663d6ea4e9360863fba08788f07f65 | |
parent | 40e1ebe97d58b141332e895facf9e69b8b430ae1 (diff) |
f2fs: use inner macro GFP_F2FS_ZERO for simplification
Use inner macro GFP_F2FS_ZERO to instead of GFP_NOFS | __GFP_ZERO for
simplification of code.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
-rw-r--r-- | fs/f2fs/node.c | 2 | ||||
-rw-r--r-- | fs/f2fs/recovery.c | 2 | ||||
-rw-r--r-- | fs/f2fs/super.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 0855168af7d7..099f06f84e29 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c | |||
@@ -1577,7 +1577,7 @@ static int ra_sum_pages(struct f2fs_sb_info *sbi, struct list_head *pages, | |||
1577 | 1577 | ||
1578 | for (; page_idx < start + nrpages; page_idx++) { | 1578 | for (; page_idx < start + nrpages; page_idx++) { |
1579 | /* alloc temporal page for read node summary info*/ | 1579 | /* alloc temporal page for read node summary info*/ |
1580 | page = alloc_page(GFP_NOFS | __GFP_ZERO); | 1580 | page = alloc_page(GFP_F2FS_ZERO); |
1581 | if (!page) { | 1581 | if (!page) { |
1582 | struct page *tmp; | 1582 | struct page *tmp; |
1583 | list_for_each_entry_safe(page, tmp, pages, lru) { | 1583 | list_for_each_entry_safe(page, tmp, pages, lru) { |
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index c209b8652927..7dda1f28f6cb 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c | |||
@@ -377,7 +377,7 @@ static int recover_data(struct f2fs_sb_info *sbi, | |||
377 | blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); | 377 | blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); |
378 | 378 | ||
379 | /* read node page */ | 379 | /* read node page */ |
380 | page = alloc_page(GFP_NOFS | __GFP_ZERO); | 380 | page = alloc_page(GFP_F2FS_ZERO); |
381 | if (!page) | 381 | if (!page) |
382 | return -ENOMEM; | 382 | return -ENOMEM; |
383 | 383 | ||
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index dd55074a304f..22b07c33662f 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c | |||
@@ -332,7 +332,7 @@ static struct inode *f2fs_alloc_inode(struct super_block *sb) | |||
332 | { | 332 | { |
333 | struct f2fs_inode_info *fi; | 333 | struct f2fs_inode_info *fi; |
334 | 334 | ||
335 | fi = kmem_cache_alloc(f2fs_inode_cachep, GFP_NOFS | __GFP_ZERO); | 335 | fi = kmem_cache_alloc(f2fs_inode_cachep, GFP_F2FS_ZERO); |
336 | if (!fi) | 336 | if (!fi) |
337 | return NULL; | 337 | return NULL; |
338 | 338 | ||