Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42383
b: refs/heads/master
c: 02dc1af
h: refs/heads/master
i:
  42381: 2288ea3
  42379: a72a65e
  42375: 0c7f27e
  42367: 3c5adf1
v: v3
  • Loading branch information
Mark Fasheh committed Dec 2, 2006
1 parent cb9740f commit ff31ac3
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 30 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: 4bcec1847ac4f75c2ee6d091b495f34d8d822e6a
refs/heads/master: 02dc1af44e9fa4b8801169891b3a1ba4047537ad
8 changes: 4 additions & 4 deletions trunk/fs/ocfs2/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ static int __ocfs2_flush_truncate_log(struct ocfs2_super *osb)
if (status < 0)
mlog_errno(status);

ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);

out_unlock:
brelse(data_alloc_bh);
Expand Down Expand Up @@ -1379,7 +1379,7 @@ int ocfs2_complete_truncate_log_recovery(struct ocfs2_super *osb,

status = ocfs2_truncate_log_append(osb, handle,
start_blk, clusters);
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);
if (status < 0) {
mlog_errno(status);
goto bail_up;
Expand Down Expand Up @@ -1883,7 +1883,7 @@ int ocfs2_commit_truncate(struct ocfs2_super *osb,
mutex_unlock(&tl_inode->i_mutex);
tl_sem = 0;

ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);
handle = NULL;

BUG_ON(le32_to_cpu(fe->i_clusters) < target_i_clusters);
Expand All @@ -1898,7 +1898,7 @@ int ocfs2_commit_truncate(struct ocfs2_super *osb,
mutex_unlock(&tl_inode->i_mutex);

if (handle)
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);

if (last_eb_bh)
brelse(last_eb_bh);
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/ocfs2/aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ struct ocfs2_journal_handle *ocfs2_start_walk_page_trans(struct inode *inode,
out:
if (ret) {
if (handle)
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);
handle = ERR_PTR(ret);
}
return handle;
Expand Down Expand Up @@ -464,7 +464,7 @@ static int ocfs2_commit_write(struct file *file, struct page *page,
}

out_commit:
ocfs2_commit_trans(handle);
ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle);
out_unlock_data:
ocfs2_data_unlock(inode, 1);
out_unlock_meta:
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ocfs2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ static int ocfs2_extend_dir(struct ocfs2_super *osb,
get_bh(*new_de_bh);
bail:
if (handle)
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);

if (data_ac)
ocfs2_free_alloc_context(data_ac);
Expand Down
12 changes: 6 additions & 6 deletions trunk/fs/ocfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ static int ocfs2_simple_size_update(struct inode *inode,
if (ret < 0)
mlog_errno(ret);

ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);
out:
return ret;
}
Expand Down Expand Up @@ -207,7 +207,7 @@ static int ocfs2_orphan_for_truncate(struct ocfs2_super *osb,
if (status < 0)
mlog_errno(status);

ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);
out:
mlog_exit(status);
return status;
Expand Down Expand Up @@ -576,7 +576,7 @@ static int ocfs2_extend_allocation(struct inode *inode,
drop_alloc_sem = 0;
}
if (handle) {
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);
handle = NULL;
}
if (data_ac) {
Expand Down Expand Up @@ -655,7 +655,7 @@ static int ocfs2_write_zero_page(struct inode *inode,
ret = 0;

if (handle)
ocfs2_commit_trans(handle);
ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle);
out_unlock:
unlock_page(page);
page_cache_release(page);
Expand Down Expand Up @@ -850,7 +850,7 @@ int ocfs2_setattr(struct dentry *dentry, struct iattr *attr)
mlog_errno(status);

bail_commit:
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);
bail_unlock:
ocfs2_meta_unlock(inode, 1);
bail_unlock_rw:
Expand Down Expand Up @@ -938,7 +938,7 @@ static int ocfs2_write_remove_suid(struct inode *inode)
out_bh:
brelse(bh);
out_trans:
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);
out:
mlog_exit(ret);
return ret;
Expand Down
6 changes: 3 additions & 3 deletions trunk/fs/ocfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ static int ocfs2_truncate_for_delete(struct ocfs2_super *osb,
goto bail;
}

ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);
handle = NULL;

status = ocfs2_prepare_truncate(osb, inode, fe_bh, &tc);
Expand All @@ -554,7 +554,7 @@ static int ocfs2_truncate_for_delete(struct ocfs2_super *osb,
}
bail:
if (handle)
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);

mlog_exit(status);
return status;
Expand Down Expand Up @@ -629,7 +629,7 @@ static int ocfs2_remove_inode(struct inode *inode,
mlog_errno(status);

bail_commit:
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);
bail_unlock:
ocfs2_meta_unlock(inode_alloc_inode, 1);
mutex_unlock(&inode_alloc_inode->i_mutex);
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ocfs2/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static int ocfs2_set_inode_attr(struct inode *inode, unsigned flags,
if (status < 0)
mlog_errno(status);

ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);
bail_unlock:
ocfs2_meta_unlock(inode, 1);
bail:
Expand Down
5 changes: 3 additions & 2 deletions trunk/fs/ocfs2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,12 @@ struct ocfs2_journal_handle *ocfs2_start_trans(struct ocfs2_super *osb,
return ERR_PTR(ret);
}

void ocfs2_commit_trans(struct ocfs2_journal_handle *handle)
void ocfs2_commit_trans(struct ocfs2_super *osb,
struct ocfs2_journal_handle *handle)
{
handle_t *jbd_handle;
int retval;
struct ocfs2_journal *journal = handle->journal;
struct ocfs2_journal *journal = osb->journal;

mlog_entry_void();

Expand Down
3 changes: 2 additions & 1 deletion trunk/fs/ocfs2/journal.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ static inline void ocfs2_checkpoint_inode(struct inode *inode)
struct ocfs2_journal_handle *ocfs2_start_trans(struct ocfs2_super *osb,
struct ocfs2_journal_handle *handle,
int max_buffs);
void ocfs2_commit_trans(struct ocfs2_journal_handle *handle);
void ocfs2_commit_trans(struct ocfs2_super *osb,
struct ocfs2_journal_handle *handle);
int ocfs2_extend_trans(handle_t *handle, int nblocks);

/*
Expand Down
6 changes: 3 additions & 3 deletions trunk/fs/ocfs2/localalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ void ocfs2_shutdown_local_alloc(struct ocfs2_super *osb)
mlog_errno(status);

out_commit:
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);

out_unlock:
if (main_bm_bh)
Expand Down Expand Up @@ -421,7 +421,7 @@ int ocfs2_complete_local_alloc_recovery(struct ocfs2_super *osb,
if (status < 0)
mlog_errno(status);

ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);

out_unlock:
ocfs2_meta_unlock(main_bm_inode, 1);
Expand Down Expand Up @@ -954,7 +954,7 @@ static int ocfs2_local_alloc_slide_window(struct ocfs2_super *osb,
status = 0;
bail:
if (handle)
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);

if (main_bm_bh)
brelse(main_bm_bh);
Expand Down
10 changes: 5 additions & 5 deletions trunk/fs/ocfs2/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ static int ocfs2_mknod(struct inode *dir,
status = 0;
leave:
if (handle)
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);

ocfs2_meta_unlock(dir, 1);

Expand Down Expand Up @@ -746,7 +746,7 @@ static int ocfs2_link(struct dentry *old_dentry,
d_instantiate(dentry, inode);

out_commit:
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);
out_unlock_inode:
ocfs2_meta_unlock(inode, 1);

Expand Down Expand Up @@ -942,7 +942,7 @@ static int ocfs2_unlink(struct inode *dir,

leave:
if (handle)
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);

if (child_locked)
ocfs2_meta_unlock(inode, 1);
Expand Down Expand Up @@ -1428,7 +1428,7 @@ static int ocfs2_rename(struct inode *old_dir,
ocfs2_rename_unlock(osb);

if (handle)
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);

if (parents_locked)
ocfs2_double_unlock(old_dir, new_dir);
Expand Down Expand Up @@ -1730,7 +1730,7 @@ static int ocfs2_symlink(struct inode *dir,
d_instantiate(dentry, inode);
bail:
if (handle)
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);

ocfs2_meta_unlock(dir, 1);

Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ocfs2/suballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ static int ocfs2_block_group_alloc(struct ocfs2_super *osb,
status = 0;
bail:
if (handle)
ocfs2_commit_trans(handle);
ocfs2_commit_trans(osb, handle);

if (ac)
ocfs2_free_alloc_context(ac);
Expand Down

0 comments on commit ff31ac3

Please sign in to comment.