diff options
author | Xue jiufei <xuejiufei@huawei.com> | 2014-06-05 01:06:24 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-05 01:53:55 +0200 |
commit | e72db989e1c01fde28aabf7fd29faeaa08538e24 (patch) | |
tree | e1c2565aaea24df2d9ae9048dc3a76f30f1421ee /fs/ocfs2/dlmglue.c | |
parent | ocfs2: fix incorrect i_size of global bitmap inode after resize (diff) | |
download | linux-e72db989e1c01fde28aabf7fd29faeaa08538e24.tar.xz linux-e72db989e1c01fde28aabf7fd29faeaa08538e24.zip |
ocfs2: remove some unused code
dlm_recovery_ctxt.received is unused.
ocfs2_should_refresh_lock_res() can only return 0 or 1, so the error
handling code in ocfs2_super_lock() is unneeded.
Signed-off-by: joyce.xue <xuejiufei@huawei.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/dlmglue.c')
-rw-r--r-- | fs/ocfs2/dlmglue.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c index 6bd690b5a061..52cfe99ae056 100644 --- a/fs/ocfs2/dlmglue.c +++ b/fs/ocfs2/dlmglue.c @@ -2544,11 +2544,6 @@ int ocfs2_super_lock(struct ocfs2_super *osb, * refreshed, so we do it here. Of course, making sense of * everything is up to the caller :) */ status = ocfs2_should_refresh_lock_res(lockres); - if (status < 0) { - ocfs2_cluster_unlock(osb, lockres, level); - mlog_errno(status); - goto bail; - } if (status) { status = ocfs2_refresh_slot_info(osb); |