checkpoint.c (86531d6b84bc096d5d9dbc23333df0ab8d347763) checkpoint.c (f3f338caad3428fbc4bb563828efc6ecce4d956b)
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

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

74 goto repeat;
75 }
76
77 lock_page(page);
78 if (unlikely(page->mapping != mapping)) {
79 f2fs_put_page(page, 1);
80 goto repeat;
81 }
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

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

74 goto repeat;
75 }
76
77 lock_page(page);
78 if (unlikely(page->mapping != mapping)) {
79 f2fs_put_page(page, 1);
80 goto repeat;
81 }
82
83 /*
84 * if there is any IO error when accessing device, make our filesystem
85 * readonly and make sure do not write checkpoint with non-uptodate
86 * meta page.
87 */
88 if (unlikely(!PageUptodate(page)))
89 f2fs_stop_checkpoint(sbi);
82out:
83 return page;
84}
85
86bool is_valid_blkaddr(struct f2fs_sb_info *sbi, block_t blkaddr, int type)
87{
88 switch (type) {
89 case META_NAT:

--- 1038 unchanged lines hidden ---
90out:
91 return page;
92}
93
94bool is_valid_blkaddr(struct f2fs_sb_info *sbi, block_t blkaddr, int type)
95{
96 switch (type) {
97 case META_NAT:

--- 1038 unchanged lines hidden ---