checkpoint.c (889fac6d67d46a5e781c08fb26fec9016db1c307) checkpoint.c (4da7bf5a4345f3ce9699476a8022f66cfb4a8ce9)
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

--- 197 unchanged lines hidden (view full) ---

206}
207
208void ra_meta_pages_cond(struct f2fs_sb_info *sbi, pgoff_t index)
209{
210 struct page *page;
211 bool readahead = false;
212
213 page = find_get_page(META_MAPPING(sbi), 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

--- 197 unchanged lines hidden (view full) ---

206}
207
208void ra_meta_pages_cond(struct f2fs_sb_info *sbi, pgoff_t index)
209{
210 struct page *page;
211 bool readahead = false;
212
213 page = find_get_page(META_MAPPING(sbi), index);
214 if (!page || (page && !PageUptodate(page)))
214 if (!page || !PageUptodate(page))
215 readahead = true;
216 f2fs_put_page(page, 0);
217
218 if (readahead)
219 ra_meta_pages(sbi, index, MAX_BIO_BLOCKS(sbi), META_POR, true);
220}
221
222static int f2fs_write_meta_page(struct page *page,

--- 991 unchanged lines hidden ---
215 readahead = true;
216 f2fs_put_page(page, 0);
217
218 if (readahead)
219 ra_meta_pages(sbi, index, MAX_BIO_BLOCKS(sbi), META_POR, true);
220}
221
222static int f2fs_write_meta_page(struct page *page,

--- 991 unchanged lines hidden ---