aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmcommon.h
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2006-03-10 13:44:00 -0800
committerMark Fasheh <mark.fasheh@oracle.com>2006-06-26 14:42:41 -0700
commit95c4f581d6551de55cf5b8693db98b01ce07021b (patch)
treed453b4b25c4bb66f58e2671fec8c36394875bef8 /fs/ocfs2/dlm/dlmcommon.h
parent4198985f7ae119a23f83503a692dd822bd574080 (diff)
downloadkernel_samsung_smdk4412-95c4f581d6551de55cf5b8693db98b01ce07021b.zip
kernel_samsung_smdk4412-95c4f581d6551de55cf5b8693db98b01ce07021b.tar.gz
kernel_samsung_smdk4412-95c4f581d6551de55cf5b8693db98b01ce07021b.tar.bz2
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 'fs/ocfs2/dlm/dlmcommon.h')
-rw-r--r--fs/ocfs2/dlm/dlmcommon.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h
index 3b67536..8761281 100644
--- a/fs/ocfs2/dlm/dlmcommon.h
+++ b/fs/ocfs2/dlm/dlmcommon.h
@@ -690,7 +690,12 @@ void dlm_lockres_calc_usage(struct dlm_ctxt *dlm,
struct dlm_lock_resource *res);
void dlm_purge_lockres(struct dlm_ctxt *dlm,
struct dlm_lock_resource *lockres);
-void dlm_lockres_get(struct dlm_lock_resource *res);
+static inline void dlm_lockres_get(struct dlm_lock_resource *res)
+{
+ /* This is called on every lookup, so it might be worth
+ * inlining. */
+ kref_get(&res->refs);
+}
void dlm_lockres_put(struct dlm_lock_resource *res);
void __dlm_unhash_lockres(struct dlm_lock_resource *res);
void __dlm_insert_lockres(struct dlm_ctxt *dlm,