* + ocfs2-remove-unused-code-in-dlm_new_lockres.patch added to -mm tree
@ 2014-09-05 22:57 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2014-09-05 22:57 UTC (permalink / raw)
To: xuejiufei, jlbec, mfasheh, mm-commits
The patch titled
Subject: ocfs2: remove unused code in dlm_new_lockres()
has been added to the -mm tree. Its filename is
ocfs2-remove-unused-code-in-dlm_new_lockres.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/ocfs2-remove-unused-code-in-dlm_new_lockres.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/ocfs2-remove-unused-code-in-dlm_new_lockres.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Xue jiufei <xuejiufei@huawei.com>
Subject: ocfs2: remove unused code in dlm_new_lockres()
Remove the branch that free res->lockname.name because the condition
is never satisfied when jump to label error.
Signed-off-by: joyce.xue <xuejiufei@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/ocfs2/dlm/dlmmaster.c | 3 ---
1 file changed, 3 deletions(-)
diff -puN fs/ocfs2/dlm/dlmmaster.c~ocfs2-remove-unused-code-in-dlm_new_lockres fs/ocfs2/dlm/dlmmaster.c
--- a/fs/ocfs2/dlm/dlmmaster.c~ocfs2-remove-unused-code-in-dlm_new_lockres
+++ a/fs/ocfs2/dlm/dlmmaster.c
@@ -625,9 +625,6 @@ struct dlm_lock_resource *dlm_new_lockre
return res;
error:
- if (res && res->lockname.name)
- kmem_cache_free(dlm_lockname_cache, (void *)res->lockname.name);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-05 22:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-05 22:57 + ocfs2-remove-unused-code-in-dlm_new_lockres.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.