[PATCH 3/5] Btrfs: cleanup for duplicated code in find_free_extent

2012-09-14 Thread Liu Bo
There is already an 'add free space' phrase in front of this one, we needn't to redo it. Signed-off-by: Liu Bo bo.li@oracle.com --- fs/btrfs/extent-tree.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index

Re: [PATCH 3/5] Btrfs: cleanup for duplicated code in find_free_extent

2012-09-14 Thread David Sterba
On Fri, Sep 14, 2012 at 04:58:05PM +0800, Liu Bo wrote: There is already an 'add free space' phrase in front of this one, we needn't to redo it. Signed-off-by: Liu Bo bo.li@oracle.com Yes, the check is duplicate and the values cannot change inbetween, moreover this calls the