diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-12-19 01:59:51 -0500 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-02-20 09:36:39 -0500 |
commit | 0e8c36a9fd8169a8b96c2ddc8446894bcd07b6b1 (patch) | |
tree | 023c77f4f81ef42142f7cea56cbf9da9e6dd80fe /fs/btrfs/delayed-inode.h | |
parent | 4ea41ce07d8aed9e64c546abf341aea44e782e64 (diff) |
Btrfs: fix lots of orphan inodes when the space is not enough
We're running into having 50-100 orphans left over with xfstests 83
because of ENOSPC when trying to start the transaction for the inode update.
But in fact, it makes no sense in updating the inode for the new size while
we're deleting the stupid thing. This patch fixes this problem.
Reported-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/delayed-inode.h')
-rw-r--r-- | fs/btrfs/delayed-inode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/delayed-inode.h b/fs/btrfs/delayed-inode.h index 4f808e1baeed..78b6ad0fc669 100644 --- a/fs/btrfs/delayed-inode.h +++ b/fs/btrfs/delayed-inode.h | |||
@@ -117,6 +117,7 @@ int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans, | |||
117 | /* Used for evicting the inode. */ | 117 | /* Used for evicting the inode. */ |
118 | void btrfs_remove_delayed_node(struct inode *inode); | 118 | void btrfs_remove_delayed_node(struct inode *inode); |
119 | void btrfs_kill_delayed_inode_items(struct inode *inode); | 119 | void btrfs_kill_delayed_inode_items(struct inode *inode); |
120 | int btrfs_commit_inode_delayed_inode(struct inode *inode); | ||
120 | 121 | ||
121 | 122 | ||
122 | int btrfs_delayed_update_inode(struct btrfs_trans_handle *trans, | 123 | int btrfs_delayed_update_inode(struct btrfs_trans_handle *trans, |