diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2017-01-12 14:40:03 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2017-01-12 14:41:08 +1100 |
commit | bbb6094ce028ec75606ae1fdc4c00ce681efe1e3 (patch) | |
tree | 8d176131154b134c8e6394faed23c387b1b41d53 | |
parent | 68dc5896e967b64c1d943d5fc1512bdd8a475e82 (diff) |
ocfs2/dmglue: do not inline functions whose bodies are not in scope
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r-- | fs/ocfs2/dlmglue.c | 6 | ||||
-rw-r--r-- | fs/ocfs2/dlmglue.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c index 951f5d9a0884..f0823f4d0afd 100644 --- a/fs/ocfs2/dlmglue.c +++ b/fs/ocfs2/dlmglue.c @@ -750,7 +750,7 @@ void ocfs2_lock_res_free(struct ocfs2_lock_res *res) res->l_flags = 0UL; } -inline void ocfs2_add_holder(struct ocfs2_lock_res *lockres, +void ocfs2_add_holder(struct ocfs2_lock_res *lockres, struct ocfs2_holder *oh) { INIT_LIST_HEAD(&oh->oh_list); @@ -761,7 +761,7 @@ inline void ocfs2_add_holder(struct ocfs2_lock_res *lockres, spin_unlock(&lockres->l_lock); } -inline void ocfs2_remove_holder(struct ocfs2_lock_res *lockres, +void ocfs2_remove_holder(struct ocfs2_lock_res *lockres, struct ocfs2_holder *oh) { spin_lock(&lockres->l_lock); @@ -771,7 +771,7 @@ inline void ocfs2_remove_holder(struct ocfs2_lock_res *lockres, put_pid(oh->oh_owner_pid); } -inline struct ocfs2_holder *ocfs2_is_locked_by_me(struct ocfs2_lock_res *lockres) +struct ocfs2_holder *ocfs2_is_locked_by_me(struct ocfs2_lock_res *lockres) { struct ocfs2_holder *oh; struct pid *pid; diff --git a/fs/ocfs2/dlmglue.h b/fs/ocfs2/dlmglue.h index d65ff1e49552..7f0c07bb30a3 100644 --- a/fs/ocfs2/dlmglue.h +++ b/fs/ocfs2/dlmglue.h @@ -182,10 +182,10 @@ void ocfs2_set_locking_protocol(void); * Keep a list of processes who have interest in a lockres. * Note: this is now only uesed for check recursive cluster lock. */ -inline void ocfs2_add_holder(struct ocfs2_lock_res *lockres, +void ocfs2_add_holder(struct ocfs2_lock_res *lockres, struct ocfs2_holder *oh); -inline void ocfs2_remove_holder(struct ocfs2_lock_res *lockres, +void ocfs2_remove_holder(struct ocfs2_lock_res *lockres, struct ocfs2_holder *oh); -inline struct ocfs2_holder *ocfs2_is_locked_by_me(struct ocfs2_lock_res *lockres); +struct ocfs2_holder *ocfs2_is_locked_by_me(struct ocfs2_lock_res *lockres); #endif /* DLMGLUE_H */ |