Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56999
b: refs/heads/master
c: 8fccfc8
h: refs/heads/master
i:
  56997: 9150bb3
  56995: cbe8df5
  56991: 06608c6
v: v3
  • Loading branch information
Mark Fasheh committed May 25, 2007
1 parent 1b5dc55 commit 4824755
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 5c3c6bb7709bf2bf4132750124879b3d89183e46
refs/heads/master: 8fccfc829a66b8b879c6672940523a402a786ce1
7 changes: 4 additions & 3 deletions trunk/fs/ocfs2/localalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,6 @@ int ocfs2_reserve_local_alloc_bits(struct ocfs2_super *osb,

mutex_lock(&local_alloc_inode->i_mutex);

ac->ac_inode = local_alloc_inode;
ac->ac_which = OCFS2_AC_USE_LOCAL;

if (osb->local_alloc_state != OCFS2_LA_ENABLED) {
status = -ENOSPC;
goto bail;
Expand Down Expand Up @@ -511,10 +508,14 @@ int ocfs2_reserve_local_alloc_bits(struct ocfs2_super *osb,
}
}

ac->ac_inode = local_alloc_inode;
ac->ac_which = OCFS2_AC_USE_LOCAL;
get_bh(osb->local_alloc_bh);
ac->ac_bh = osb->local_alloc_bh;
status = 0;
bail:
if (status < 0 && local_alloc_inode)
iput(local_alloc_inode);

mlog_exit(status);
return status;
Expand Down

0 comments on commit 4824755

Please sign in to comment.