Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243148
b: refs/heads/master
c: ded5db9
h: refs/heads/master
v: v3
  • Loading branch information
Josef Bacik committed Mar 17, 2011
1 parent 8f6c8d4 commit 09693cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 66b4ffd110f9b48b8d8c1319ee446b53b8d073bf
refs/heads/master: ded5db9de78f963979e1605f859de67626f54693
6 changes: 6 additions & 0 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -6589,6 +6589,12 @@ static int btrfs_truncate(struct inode *inode)
ret = btrfs_orphan_del(trans, inode);
if (ret)
err = ret;
} else if (ret && inode->i_nlink > 0) {
/*
* Failed to do the truncate, remove us from the in memory
* orphan list.
*/
ret = btrfs_orphan_del(NULL, inode);
}

ret = btrfs_update_inode(trans, root, inode);
Expand Down

0 comments on commit 09693cc

Please sign in to comment.