Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178717
b: refs/heads/master
c: cb1c2e5
h: refs/heads/master
i:
  178715: 372a35b
v: v3
  • Loading branch information
Frederic Weisbecker committed Dec 14, 2009
1 parent 3115f25 commit c3b636d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 500f5a0bf5f0624dae34307010e240ec090e4cde
refs/heads/master: cb1c2e51c5a72f093b5af384b11d2f1c2abd6c13
5 changes: 3 additions & 2 deletions trunk/fs/reiserfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ void reiserfs_delete_inode(struct inode *inode)
JOURNAL_PER_BALANCE_CNT * 2 +
2 * REISERFS_QUOTA_INIT_BLOCKS(inode->i_sb);
struct reiserfs_transaction_handle th;
int depth;
int err;

truncate_inode_pages(&inode->i_data, 0);

reiserfs_write_lock(inode->i_sb);
depth = reiserfs_write_lock_once(inode->i_sb);

/* 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 */
Expand Down Expand Up @@ -74,7 +75,7 @@ void reiserfs_delete_inode(struct inode *inode)
out:
clear_inode(inode); /* note this must go after the journal_end to prevent deadlock */
inode->i_blocks = 0;
reiserfs_write_unlock(inode->i_sb);
reiserfs_write_unlock_once(inode->i_sb, depth);
}

static void _make_cpu_key(struct cpu_key *key, int version, __u32 dirid,
Expand Down

0 comments on commit c3b636d

Please sign in to comment.