checkpoint.c (836b5a6356ac49a4631c06bc87b0ea02f41623ca) | checkpoint.c (4375a33664de17af9032b5f491a49bd256670927) |
---|---|
1/* 2 * fs/f2fs/checkpoint.c 3 * 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com/ 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 42 unchanged lines hidden (view full) --- 51{ 52 struct address_space *mapping = META_MAPPING(sbi); 53 struct page *page; 54 struct f2fs_io_info fio = { 55 .sbi = sbi, 56 .type = META, 57 .rw = READ_SYNC | REQ_META | REQ_PRIO, 58 .blk_addr = index, | 1/* 2 * fs/f2fs/checkpoint.c 3 * 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com/ 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 42 unchanged lines hidden (view full) --- 51{ 52 struct address_space *mapping = META_MAPPING(sbi); 53 struct page *page; 54 struct f2fs_io_info fio = { 55 .sbi = sbi, 56 .type = META, 57 .rw = READ_SYNC | REQ_META | REQ_PRIO, 58 .blk_addr = index, |
59 .encrypted_page = NULL, |
|
59 }; 60repeat: 61 page = grab_cache_page(mapping, index); 62 if (!page) { 63 cond_resched(); 64 goto repeat; 65 } 66 if (PageUptodate(page)) --- 50 unchanged lines hidden (view full) --- 117int ra_meta_pages(struct f2fs_sb_info *sbi, block_t start, int nrpages, int type) 118{ 119 block_t prev_blk_addr = 0; 120 struct page *page; 121 block_t blkno = start; 122 struct f2fs_io_info fio = { 123 .sbi = sbi, 124 .type = META, | 60 }; 61repeat: 62 page = grab_cache_page(mapping, index); 63 if (!page) { 64 cond_resched(); 65 goto repeat; 66 } 67 if (PageUptodate(page)) --- 50 unchanged lines hidden (view full) --- 118int ra_meta_pages(struct f2fs_sb_info *sbi, block_t start, int nrpages, int type) 119{ 120 block_t prev_blk_addr = 0; 121 struct page *page; 122 block_t blkno = start; 123 struct f2fs_io_info fio = { 124 .sbi = sbi, 125 .type = META, |
125 .rw = READ_SYNC | REQ_META | REQ_PRIO | 126 .rw = READ_SYNC | REQ_META | REQ_PRIO, 127 .encrypted_page = NULL, |
126 }; 127 128 for (; nrpages-- > 0; blkno++) { 129 130 if (!is_valid_blkaddr(sbi, blkno, type)) 131 goto out; 132 133 switch (type) { --- 1010 unchanged lines hidden --- | 128 }; 129 130 for (; nrpages-- > 0; blkno++) { 131 132 if (!is_valid_blkaddr(sbi, blkno, type)) 133 goto out; 134 135 switch (type) { --- 1010 unchanged lines hidden --- |