aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 8938174e6bc1..6349c63a4b37 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -6566,8 +6566,9 @@ static int btrfs_truncate(struct inode *inode)
6566 /* Just need the 1 for updating the inode */ 6566 /* Just need the 1 for updating the inode */
6567 trans = btrfs_start_transaction(root, 1); 6567 trans = btrfs_start_transaction(root, 1);
6568 if (IS_ERR(trans)) { 6568 if (IS_ERR(trans)) {
6569 err = PTR_ERR(trans); 6569 ret = err = PTR_ERR(trans);
6570 goto out; 6570 trans = NULL;
6571 break;
6571 } 6572 }
6572 } 6573 }
6573 6574