data.c (dd7b2333e6cd31584682382fcf0a1c1e5140b936) | data.c (55523519bc7227e651fd4febeb3aafdd22b8af1c) |
---|---|
1/* 2 * fs/f2fs/data.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 --- 41 unchanged lines hidden (view full) --- 50} 51 52static void f2fs_read_end_io(struct bio *bio) 53{ 54 struct bio_vec *bvec; 55 int i; 56 57#ifdef CONFIG_F2FS_FAULT_INJECTION | 1/* 2 * fs/f2fs/data.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 --- 41 unchanged lines hidden (view full) --- 50} 51 52static void f2fs_read_end_io(struct bio *bio) 53{ 54 struct bio_vec *bvec; 55 int i; 56 57#ifdef CONFIG_F2FS_FAULT_INJECTION |
58 if (time_to_inject(F2FS_P_SB(bio->bi_io_vec->bv_page), FAULT_IO)) | 58 if (time_to_inject(F2FS_P_SB(bio->bi_io_vec->bv_page), FAULT_IO)) { 59 f2fs_show_injection_info(FAULT_IO); |
59 bio->bi_error = -EIO; | 60 bio->bi_error = -EIO; |
61 } |
|
60#endif 61 62 if (f2fs_bio_encrypted(bio)) { 63 if (bio->bi_error) { 64 fscrypt_release_ctx(bio->bi_private); 65 } else { 66 fscrypt_decrypt_bio_pages(bio->bi_private, bio); 67 return; --- 2044 unchanged lines hidden --- | 62#endif 63 64 if (f2fs_bio_encrypted(bio)) { 65 if (bio->bi_error) { 66 fscrypt_release_ctx(bio->bi_private); 67 } else { 68 fscrypt_decrypt_bio_pages(bio->bi_private, bio); 69 return; --- 2044 unchanged lines hidden --- |