aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/namei.c
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2006-10-09 20:26:22 -0400
committerMark Fasheh <mark.fasheh@oracle.com>2006-12-01 21:28:23 -0500
commit65eff9ccf86d63eb5c3e9071450a36e4e4fa9564 (patch)
tree3610e008294ce4e5cfbc9abff3c98153f35ed2d4 /fs/ocfs2/namei.c
parentdae85832ffe2879b57b23aea319a0ec17667898d (diff)
ocfs2: remove handle argument to ocfs2_start_trans()
All callers either pass in NULL directly, or a local variable that is already set to NULL. The internals of ocfs2_start_trans() get a nice cleanup as a result. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/namei.c')
-rw-r--r--fs/ocfs2/namei.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 9a56bfdf45c6..d63ab7be89a5 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -379,7 +379,7 @@ static int ocfs2_mknod(struct inode *dir,
379 } 379 }
380 } 380 }
381 381
382 handle = ocfs2_start_trans(osb, NULL, OCFS2_MKNOD_CREDITS); 382 handle = ocfs2_start_trans(osb, OCFS2_MKNOD_CREDITS);
383 if (IS_ERR(handle)) { 383 if (IS_ERR(handle)) {
384 status = PTR_ERR(handle); 384 status = PTR_ERR(handle);
385 handle = NULL; 385 handle = NULL;
@@ -696,7 +696,7 @@ static int ocfs2_link(struct dentry *old_dentry,
696 goto out_unlock_inode; 696 goto out_unlock_inode;
697 } 697 }
698 698
699 handle = ocfs2_start_trans(osb, NULL, OCFS2_LINK_CREDITS); 699 handle = ocfs2_start_trans(osb, OCFS2_LINK_CREDITS);
700 if (IS_ERR(handle)) { 700 if (IS_ERR(handle)) {
701 err = PTR_ERR(handle); 701 err = PTR_ERR(handle);
702 handle = NULL; 702 handle = NULL;
@@ -886,7 +886,7 @@ static int ocfs2_unlink(struct inode *dir,
886 } 886 }
887 } 887 }
888 888
889 handle = ocfs2_start_trans(osb, NULL, OCFS2_UNLINK_CREDITS); 889 handle = ocfs2_start_trans(osb, OCFS2_UNLINK_CREDITS);
890 if (IS_ERR(handle)) { 890 if (IS_ERR(handle)) {
891 status = PTR_ERR(handle); 891 status = PTR_ERR(handle);
892 handle = NULL; 892 handle = NULL;
@@ -1284,7 +1284,7 @@ static int ocfs2_rename(struct inode *old_dir,
1284 } 1284 }
1285 } 1285 }
1286 1286
1287 handle = ocfs2_start_trans(osb, NULL, OCFS2_RENAME_CREDITS); 1287 handle = ocfs2_start_trans(osb, OCFS2_RENAME_CREDITS);
1288 if (IS_ERR(handle)) { 1288 if (IS_ERR(handle)) {
1289 status = PTR_ERR(handle); 1289 status = PTR_ERR(handle);
1290 handle = NULL; 1290 handle = NULL;
@@ -1652,7 +1652,7 @@ static int ocfs2_symlink(struct inode *dir,
1652 } 1652 }
1653 } 1653 }
1654 1654
1655 handle = ocfs2_start_trans(osb, NULL, credits); 1655 handle = ocfs2_start_trans(osb, credits);
1656 if (IS_ERR(handle)) { 1656 if (IS_ERR(handle)) {
1657 status = PTR_ERR(handle); 1657 status = PTR_ERR(handle);
1658 handle = NULL; 1658 handle = NULL;