]> git.karo-electronics.de Git - linux-beck.git/commitdiff
f2fs: use inner macro GFP_F2FS_ZERO for simplification
authorChao Yu <chao2.yu@samsung.com>
Thu, 5 Dec 2013 01:54:00 +0000 (09:54 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:05 +0000 (10:18 +0900)
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>
fs/f2fs/node.c
fs/f2fs/recovery.c
fs/f2fs/super.c

index 0855168af7d7d9be23d93fa093deaf30ab7f80db..099f06f84e295300114c7b4eea7db07defdaae71 100644 (file)
@@ -1577,7 +1577,7 @@ static int ra_sum_pages(struct f2fs_sb_info *sbi, struct list_head *pages,
 
        for (; page_idx < start + nrpages; page_idx++) {
                /* alloc temporal page for read node summary info*/
-               page = alloc_page(GFP_NOFS | __GFP_ZERO);
+               page = alloc_page(GFP_F2FS_ZERO);
                if (!page) {
                        struct page *tmp;
                        list_for_each_entry_safe(page, tmp, pages, lru) {
index c209b8652927650262c47ac1804830c9a098f3d8..7dda1f28f6cbf9024261f2762fa011919d8dc54e 100644 (file)
@@ -377,7 +377,7 @@ static int recover_data(struct f2fs_sb_info *sbi,
        blkaddr = NEXT_FREE_BLKADDR(sbi, curseg);
 
        /* read node page */
-       page = alloc_page(GFP_NOFS | __GFP_ZERO);
+       page = alloc_page(GFP_F2FS_ZERO);
        if (!page)
                return -ENOMEM;
 
index dd55074a304fb412f34e13e6607b354466640dbb..22b07c33662f6adb5a7dec3f002670627aa845a2 100644 (file)
@@ -332,7 +332,7 @@ static struct inode *f2fs_alloc_inode(struct super_block *sb)
 {
        struct f2fs_inode_info *fi;
 
-       fi = kmem_cache_alloc(f2fs_inode_cachep, GFP_NOFS | __GFP_ZERO);
+       fi = kmem_cache_alloc(f2fs_inode_cachep, GFP_F2FS_ZERO);
        if (!fi)
                return NULL;