data.c (dfe70581c1b7a7625baa6ba26f8876d337845a23) | data.c (4da7bf5a4345f3ce9699476a8022f66cfb4a8ce9) |
---|---|
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 --- 1482 unchanged lines hidden (view full) --- 1491 } else if (locked) { 1492 err = f2fs_get_block(&dn, index); 1493 } else { 1494 if (f2fs_lookup_extent_cache(inode, index, &ei)) { 1495 dn.data_blkaddr = ei.blk + index - ei.fofs; 1496 } else { 1497 /* hole case */ 1498 err = get_dnode_of_data(&dn, index, LOOKUP_NODE); | 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 --- 1482 unchanged lines hidden (view full) --- 1491 } else if (locked) { 1492 err = f2fs_get_block(&dn, index); 1493 } else { 1494 if (f2fs_lookup_extent_cache(inode, index, &ei)) { 1495 dn.data_blkaddr = ei.blk + index - ei.fofs; 1496 } else { 1497 /* hole case */ 1498 err = get_dnode_of_data(&dn, index, LOOKUP_NODE); |
1499 if (err || (!err && dn.data_blkaddr == NULL_ADDR)) { | 1499 if (err || dn.data_blkaddr == NULL_ADDR) { |
1500 f2fs_put_dnode(&dn); 1501 f2fs_lock_op(sbi); 1502 locked = true; 1503 goto restart; 1504 } 1505 } 1506 } 1507 --- 282 unchanged lines hidden --- | 1500 f2fs_put_dnode(&dn); 1501 f2fs_lock_op(sbi); 1502 locked = true; 1503 goto restart; 1504 } 1505 } 1506 } 1507 --- 282 unchanged lines hidden --- |