Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33228
b: refs/heads/master
c: b0b33de
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Zarochentsev authored and Linus Torvalds committed Aug 6, 2006
1 parent b6c1e19 commit 975303e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c3760ae1f914cf4479301a92c58ae65824ac5894
refs/heads/master: b0b33dee2dcc85626627919094befc17cfb141e4
12 changes: 2 additions & 10 deletions trunk/fs/reiserfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,10 @@ void reiserfs_delete_inode(struct inode *inode)

/* The = 0 happens when we abort creating a new inode for some reason like lack of space.. */
if (!(inode->i_state & I_NEW) && INODE_PKEY(inode)->k_objectid != 0) { /* also handles bad_inode case */
mutex_lock(&inode->i_mutex);

reiserfs_delete_xattrs(inode);

if (journal_begin(&th, inode->i_sb, jbegin_count)) {
mutex_unlock(&inode->i_mutex);
if (journal_begin(&th, inode->i_sb, jbegin_count))
goto out;
}
reiserfs_update_inode_transaction(inode);

err = reiserfs_delete_object(&th, inode);
Expand All @@ -57,12 +53,8 @@ void reiserfs_delete_inode(struct inode *inode)
if (!err)
DQUOT_FREE_INODE(inode);

if (journal_end(&th, inode->i_sb, jbegin_count)) {
mutex_unlock(&inode->i_mutex);
if (journal_end(&th, inode->i_sb, jbegin_count))
goto out;
}

mutex_unlock(&inode->i_mutex);

/* check return value from reiserfs_delete_object after
* ending the transaction
Expand Down

0 comments on commit 975303e

Please sign in to comment.