debug.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | debug.c (09cbfeaf1a5a67bfb3201e0c83c810cecb2efa5a) |
---|---|
1/* 2 * JFFS2 -- Journalling Flash File System, Version 2. 3 * 4 * Copyright © 2001-2007 Red Hat, Inc. 5 * Copyright © 2004-2010 David Woodhouse <dwmw2@infradead.org> 6 * 7 * Created by David Woodhouse <dwmw2@infradead.org> 8 * --- 81 unchanged lines hidden (view full) --- 90 bitched = 1; 91 } 92 93 /* A hole node which isn't multi-page should be garbage-collected 94 and merged anyway, so we just check for the frag size here, 95 rather than mucking around with actually reading the node 96 and checking the compression type, which is the real way 97 to tell a hole node. */ | 1/* 2 * JFFS2 -- Journalling Flash File System, Version 2. 3 * 4 * Copyright © 2001-2007 Red Hat, Inc. 5 * Copyright © 2004-2010 David Woodhouse <dwmw2@infradead.org> 6 * 7 * Created by David Woodhouse <dwmw2@infradead.org> 8 * --- 81 unchanged lines hidden (view full) --- 90 bitched = 1; 91 } 92 93 /* A hole node which isn't multi-page should be garbage-collected 94 and merged anyway, so we just check for the frag size here, 95 rather than mucking around with actually reading the node 96 and checking the compression type, which is the real way 97 to tell a hole node. */ |
98 if (frag->ofs & (PAGE_CACHE_SIZE-1) && frag_prev(frag) 99 && frag_prev(frag)->size < PAGE_CACHE_SIZE && frag_prev(frag)->node) { | 98 if (frag->ofs & (PAGE_SIZE-1) && frag_prev(frag) 99 && frag_prev(frag)->size < PAGE_SIZE && frag_prev(frag)->node) { |
100 JFFS2_ERROR("REF_PRISTINE node at 0x%08x had a previous non-hole frag in the same page. Tell dwmw2.\n", 101 ref_offset(fn->raw)); 102 bitched = 1; 103 } 104 | 100 JFFS2_ERROR("REF_PRISTINE node at 0x%08x had a previous non-hole frag in the same page. Tell dwmw2.\n", 101 ref_offset(fn->raw)); 102 bitched = 1; 103 } 104 |
105 if ((frag->ofs+frag->size) & (PAGE_CACHE_SIZE-1) && frag_next(frag) 106 && frag_next(frag)->size < PAGE_CACHE_SIZE && frag_next(frag)->node) { | 105 if ((frag->ofs+frag->size) & (PAGE_SIZE-1) && frag_next(frag) 106 && frag_next(frag)->size < PAGE_SIZE && frag_next(frag)->node) { |
107 JFFS2_ERROR("REF_PRISTINE node at 0x%08x (%08x-%08x) had a following non-hole frag in the same page. Tell dwmw2.\n", 108 ref_offset(fn->raw), frag->ofs, frag->ofs+frag->size); 109 bitched = 1; 110 } 111 } 112 } 113 114 if (bitched) { --- 752 unchanged lines hidden --- | 107 JFFS2_ERROR("REF_PRISTINE node at 0x%08x (%08x-%08x) had a following non-hole frag in the same page. Tell dwmw2.\n", 108 ref_offset(fn->raw), frag->ofs, frag->ofs+frag->size); 109 bitched = 1; 110 } 111 } 112 } 113 114 if (bitched) { --- 752 unchanged lines hidden --- |