diff options
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/btrfs/dev-replace.c | 3 | ||||
| -rw-r--r-- | fs/btrfs/inode.c | 3 | ||||
| -rw-r--r-- | fs/btrfs/tree-defrag.c | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index 564a7de17d99..e54dd5905cee 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c | |||
| @@ -183,8 +183,7 @@ no_valid_dev_replace_entry_found: | |||
| 183 | } | 183 | } |
| 184 | 184 | ||
| 185 | out: | 185 | out: |
| 186 | if (path) | 186 | btrfs_free_path(path); |
| 187 | btrfs_free_path(path); | ||
| 188 | return ret; | 187 | return ret; |
| 189 | } | 188 | } |
| 190 | 189 | ||
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index bda3c41dc9d5..37dd8d0f1fb3 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
| @@ -6905,8 +6905,7 @@ out: | |||
| 6905 | 6905 | ||
| 6906 | trace_btrfs_get_extent(root, em); | 6906 | trace_btrfs_get_extent(root, em); |
| 6907 | 6907 | ||
| 6908 | if (path) | 6908 | btrfs_free_path(path); |
| 6909 | btrfs_free_path(path); | ||
| 6910 | if (trans) { | 6909 | if (trans) { |
| 6911 | ret = btrfs_end_transaction(trans, root); | 6910 | ret = btrfs_end_transaction(trans, root); |
| 6912 | if (!err) | 6911 | if (!err) |
diff --git a/fs/btrfs/tree-defrag.c b/fs/btrfs/tree-defrag.c index a4b9c8b2d35a..f31db4325339 100644 --- a/fs/btrfs/tree-defrag.c +++ b/fs/btrfs/tree-defrag.c | |||
| @@ -115,8 +115,7 @@ int btrfs_defrag_leaves(struct btrfs_trans_handle *trans, | |||
| 115 | ret = -EAGAIN; | 115 | ret = -EAGAIN; |
| 116 | } | 116 | } |
| 117 | out: | 117 | out: |
| 118 | if (path) | 118 | btrfs_free_path(path); |
| 119 | btrfs_free_path(path); | ||
| 120 | if (ret == -EAGAIN) { | 119 | if (ret == -EAGAIN) { |
| 121 | if (root->defrag_max.objectid > root->defrag_progress.objectid) | 120 | if (root->defrag_max.objectid > root->defrag_progress.objectid) |
| 122 | goto done; | 121 | goto done; |
