delayed-inode.c (95e94d14b42c1992493ce72492351d4601b274fe) | delayed-inode.c (fae7f21cece9a4c181a8d8131870c7247e153f65) |
---|---|
1/* 2 * Copyright (C) 2011 Fujitsu. All rights reserved. 3 * Written by Miao Xie <miaox@cn.fujitsu.com> 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public 7 * License v2 as published by the Free Software Foundation. 8 * --- 635 unchanged lines hidden (view full) --- 644 * to steal from the delalloc block rsv. 645 */ 646 ret = btrfs_block_rsv_add(root, dst_rsv, num_bytes, 647 BTRFS_RESERVE_NO_FLUSH); 648 if (!ret) 649 goto out; 650 651 ret = btrfs_block_rsv_migrate(src_rsv, dst_rsv, num_bytes); | 1/* 2 * Copyright (C) 2011 Fujitsu. All rights reserved. 3 * Written by Miao Xie <miaox@cn.fujitsu.com> 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public 7 * License v2 as published by the Free Software Foundation. 8 * --- 635 unchanged lines hidden (view full) --- 644 * to steal from the delalloc block rsv. 645 */ 646 ret = btrfs_block_rsv_add(root, dst_rsv, num_bytes, 647 BTRFS_RESERVE_NO_FLUSH); 648 if (!ret) 649 goto out; 650 651 ret = btrfs_block_rsv_migrate(src_rsv, dst_rsv, num_bytes); |
652 if (!ret) | 652 if (!WARN_ON(ret)) |
653 goto out; 654 655 /* 656 * Ok this is a problem, let's just steal from the global rsv 657 * since this really shouldn't happen that often. 658 */ | 653 goto out; 654 655 /* 656 * Ok this is a problem, let's just steal from the global rsv 657 * since this really shouldn't happen that often. 658 */ |
659 WARN_ON(1); | |
660 ret = btrfs_block_rsv_migrate(&root->fs_info->global_block_rsv, 661 dst_rsv, num_bytes); 662 goto out; 663 } 664 665migrate: 666 ret = btrfs_block_rsv_migrate(src_rsv, dst_rsv, num_bytes); 667 --- 1253 unchanged lines hidden --- | 659 ret = btrfs_block_rsv_migrate(&root->fs_info->global_block_rsv, 660 dst_rsv, num_bytes); 661 goto out; 662 } 663 664migrate: 665 ret = btrfs_block_rsv_migrate(src_rsv, dst_rsv, num_bytes); 666 --- 1253 unchanged lines hidden --- |