diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2006-10-09 17:26:22 -0700 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2006-12-01 18:28:23 -0800 |
commit | 65eff9ccf86d63eb5c3e9071450a36e4e4fa9564 (patch) | |
tree | 3610e008294ce4e5cfbc9abff3c98153f35ed2d4 /fs/ocfs2/inode.c | |
parent | dae85832ffe2879b57b23aea319a0ec17667898d (diff) | |
download | linux-3.10-65eff9ccf86d63eb5c3e9071450a36e4e4fa9564.tar.gz linux-3.10-65eff9ccf86d63eb5c3e9071450a36e4e4fa9564.tar.bz2 linux-3.10-65eff9ccf86d63eb5c3e9071450a36e4e4fa9564.zip |
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/inode.c')
-rw-r--r-- | fs/ocfs2/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c index 7708c63a355..ac78877ba14 100644 --- a/fs/ocfs2/inode.c +++ b/fs/ocfs2/inode.c @@ -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); |