diff options
-rw-r--r-- | fs/btrfs/file.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 7e85dca0e6f2..9dbea72a61fe 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -2554,10 +2554,8 @@ static int btrfs_punch_hole(struct inode *inode, loff_t offset, loff_t len) | |||
2554 | 2554 | ||
2555 | ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, | 2555 | ret = btrfs_punch_hole_lock_range(inode, lockstart, lockend, |
2556 | &cached_state); | 2556 | &cached_state); |
2557 | if (ret) { | 2557 | if (ret) |
2558 | inode_unlock(inode); | ||
2559 | goto out_only_mutex; | 2558 | goto out_only_mutex; |
2560 | } | ||
2561 | 2559 | ||
2562 | path = btrfs_alloc_path(); | 2560 | path = btrfs_alloc_path(); |
2563 | if (!path) { | 2561 | if (!path) { |