Re: [PATCH] Btrfs: btrfs_get_extent: put btrfs_free_path ahead

2018-08-24 Thread David Sterba
On Thu, Aug 23, 2018 at 07:36:17AM +0800, Liu Bo wrote: > trace_btrfs_get_extent() has nothing to do with path, place > btrfs_free_path ahead so that we can unlock path on error. > > Signed-off-by: Liu Bo Reviewed-by: David Sterba

[PATCH] Btrfs: btrfs_get_extent: put btrfs_free_path ahead

2018-08-22 Thread Liu Bo
trace_btrfs_get_extent() has nothing to do with path, place btrfs_free_path ahead so that we can unlock path on error. Signed-off-by: Liu Bo --- fs/btrfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index