aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/localalloc.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/localalloc.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/localalloc.c')
-rw-r--r--fs/ocfs2/localalloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ocfs2/localalloc.c b/fs/ocfs2/localalloc.c
index 9dd208dc5d7a..2ae567a7042b 100644
--- a/fs/ocfs2/localalloc.c
+++ b/fs/ocfs2/localalloc.c
@@ -238,7 +238,7 @@ void ocfs2_shutdown_local_alloc(struct ocfs2_super *osb)
238 } 238 }
239 239
240 /* WINDOW_MOVE_CREDITS is a bit heavy... */ 240 /* WINDOW_MOVE_CREDITS is a bit heavy... */
241 handle = ocfs2_start_trans(osb, NULL, OCFS2_WINDOW_MOVE_CREDITS); 241 handle = ocfs2_start_trans(osb, OCFS2_WINDOW_MOVE_CREDITS);
242 if (IS_ERR(handle)) { 242 if (IS_ERR(handle)) {
243 mlog_errno(PTR_ERR(handle)); 243 mlog_errno(PTR_ERR(handle));
244 handle = NULL; 244 handle = NULL;
@@ -405,7 +405,7 @@ int ocfs2_complete_local_alloc_recovery(struct ocfs2_super *osb,
405 goto out_mutex; 405 goto out_mutex;
406 } 406 }
407 407
408 handle = ocfs2_start_trans(osb, NULL, OCFS2_WINDOW_MOVE_CREDITS); 408 handle = ocfs2_start_trans(osb, OCFS2_WINDOW_MOVE_CREDITS);
409 if (IS_ERR(handle)) { 409 if (IS_ERR(handle)) {
410 status = PTR_ERR(handle); 410 status = PTR_ERR(handle);
411 handle = NULL; 411 handle = NULL;
@@ -896,7 +896,7 @@ static int ocfs2_local_alloc_slide_window(struct ocfs2_super *osb,
896 goto bail; 896 goto bail;
897 } 897 }
898 898
899 handle = ocfs2_start_trans(osb, NULL, OCFS2_WINDOW_MOVE_CREDITS); 899 handle = ocfs2_start_trans(osb, OCFS2_WINDOW_MOVE_CREDITS);
900 if (IS_ERR(handle)) { 900 if (IS_ERR(handle)) {
901 status = PTR_ERR(handle); 901 status = PTR_ERR(handle);
902 handle = NULL; 902 handle = NULL;