inode.c (b335b0034e252e79ec2e9c6697f5d663c4627bec) | inode.c (e00f7308658622fbd483cb0d9fe41165bf9050d0) |
---|---|
1/* 2 * Copyright (C) 2007 Oracle. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public 6 * License v2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 2517 unchanged lines hidden (view full) --- 2526 path->reada = -1; 2527 BUG_ON(!path); 2528 2529 /* FIXME, add redo link to tree so we don't leak on crash */ 2530 key.objectid = inode->i_ino; 2531 key.offset = (u64)-1; 2532 key.type = (u8)-1; 2533 | 1/* 2 * Copyright (C) 2007 Oracle. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public 6 * License v2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 2517 unchanged lines hidden (view full) --- 2526 path->reada = -1; 2527 BUG_ON(!path); 2528 2529 /* FIXME, add redo link to tree so we don't leak on crash */ 2530 key.objectid = inode->i_ino; 2531 key.offset = (u64)-1; 2532 key.type = (u8)-1; 2533 |
2534 btrfs_init_path(path); 2535 | |
2536search_again: 2537 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); 2538 if (ret < 0) 2539 goto error; 2540 2541 if (ret > 0) { 2542 /* there are no items in the tree for us to truncate, we're 2543 * done --- 2548 unchanged lines hidden --- | 2534search_again: 2535 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); 2536 if (ret < 0) 2537 goto error; 2538 2539 if (ret > 0) { 2540 /* there are no items in the tree for us to truncate, we're 2541 * done --- 2548 unchanged lines hidden --- |