search for: btrfs_find_free_ino

Displaying 1 result from an estimated 1 matches for "btrfs_find_free_ino".

2011 Jun 09
2
[PATCH] Btrfs: turn to readonly if btrfs_start_transaction() fails
...18,8 +4624,10 @@ static int btrfs_mknod(struct inode *dir, struct dentry *dentry, * 1 for xattr if selinux is on */ trans = btrfs_start_transaction(root, 5); - if (IS_ERR(trans)) + if (IS_ERR(trans)) { + btrfs_abort_transaction(root, PTR_ERR(trans)); return PTR_ERR(trans); + } err = btrfs_find_free_ino(root, &objectid); if (err) @@ -4676,8 +4684,10 @@ static int btrfs_create(struct inode *dir, struct dentry *dentry, * 1 for xattr if selinux is on */ trans = btrfs_start_transaction(root, 5); - if (IS_ERR(trans)) + if (IS_ERR(trans)) { + btrfs_abort_transaction(root, PTR_ERR(trans));...