diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2006-03-10 22:44:00 +0100 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2006-06-26 23:42:41 +0200 |
commit | 95c4f581d6551de55cf5b8693db98b01ce07021b (patch) | |
tree | d453b4b25c4bb66f58e2671fec8c36394875bef8 /fs/ocfs2/dlm/dlmmaster.c | |
parent | [PATCH] Clean up ocfs2 hash probe and make it faster (diff) | |
download | linux-95c4f581d6551de55cf5b8693db98b01ce07021b.tar.xz linux-95c4f581d6551de55cf5b8693db98b01ce07021b.zip |
ocfs2: inline dlm_lockres_get()
It's called on every lookup so this might help performance a bit.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to '')
-rw-r--r-- | fs/ocfs2/dlm/dlmmaster.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c index 953aa8421be4..f1fbf2f4e5d6 100644 --- a/fs/ocfs2/dlm/dlmmaster.c +++ b/fs/ocfs2/dlm/dlmmaster.c @@ -579,11 +579,6 @@ static void dlm_lockres_release(struct kref *kref) kfree(res); } -void dlm_lockres_get(struct dlm_lock_resource *res) -{ - kref_get(&res->refs); -} - void dlm_lockres_put(struct dlm_lock_resource *res) { kref_put(&res->refs, dlm_lockres_release); |