diff options
| -rw-r--r-- | fs/btrfs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 5ba87b0d2ef8..d12107e90987 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
| @@ -1859,8 +1859,8 @@ int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) | |||
| 1859 | 1859 | ||
| 1860 | ret = btrfs_log_dentry_safe(trans, root, dentry); | 1860 | ret = btrfs_log_dentry_safe(trans, root, dentry); |
| 1861 | if (ret < 0) { | 1861 | if (ret < 0) { |
| 1862 | mutex_unlock(&inode->i_mutex); | 1862 | /* Fallthrough and commit/free transaction. */ |
| 1863 | goto out; | 1863 | ret = 1; |
| 1864 | } | 1864 | } |
| 1865 | 1865 | ||
| 1866 | /* we've logged all the items and now have a consistent | 1866 | /* we've logged all the items and now have a consistent |
