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>
This commit is contained in:
@@ -524,7 +524,7 @@ static int ocfs2_truncate_for_delete(struct ocfs2_super *osb,
|
||||
if (!fe->i_clusters)
|
||||
goto bail;
|
||||
|
||||
handle = ocfs2_start_trans(osb, handle, OCFS2_INODE_UPDATE_CREDITS);
|
||||
handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
|
||||
if (IS_ERR(handle)) {
|
||||
status = PTR_ERR(handle);
|
||||
handle = NULL;
|
||||
@@ -590,7 +590,7 @@ static int ocfs2_remove_inode(struct inode *inode,
|
||||
goto bail;
|
||||
}
|
||||
|
||||
handle = ocfs2_start_trans(osb, NULL, OCFS2_DELETE_INODE_CREDITS);
|
||||
handle = ocfs2_start_trans(osb, OCFS2_DELETE_INODE_CREDITS);
|
||||
if (IS_ERR(handle)) {
|
||||
status = PTR_ERR(handle);
|
||||
mlog_errno(status);
|
||||
|
Reference in New Issue
Block a user