f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info
[linux-2.6-microblaze.git] / fs / f2fs / checkpoint.c
index 7e2b44d..89ce08b 100644 (file)
@@ -70,7 +70,7 @@ static struct page *__get_meta_page(struct f2fs_sb_info *sbi, pgoff_t index,
                .old_blkaddr = index,
                .new_blkaddr = index,
                .encrypted_page = NULL,
-               .is_por = !is_meta,
+               .is_por = !is_meta ? 1 : 0,
        };
        int err;
 
@@ -237,8 +237,8 @@ int f2fs_ra_meta_pages(struct f2fs_sb_info *sbi, block_t start, int nrpages,
                .op = REQ_OP_READ,
                .op_flags = sync ? (REQ_META | REQ_PRIO) : REQ_RAHEAD,
                .encrypted_page = NULL,
-               .in_list = false,
-               .is_por = (type == META_POR),
+               .in_list = 0,
+               .is_por = (type == META_POR) ? 1 : 0,
        };
        struct blk_plug plug;
        int err;