summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@sophos.com>2010-11-08 18:15:08 -0500
committerEric Paris <eparis@redhat.com>2010-12-07 16:28:30 -0500
commit4b8e2f869971915a43b4ecf12d005e86fc752eb9 (patch)
tree550a8bd204a5307b527c6bfbfc33297d9f203f96 /fs
parentfdbf3ceeb659f0b3c0e8dd79b331b7ac05910f1e (diff)
fsnotify: inline mark refcnt functions
Inline trivial mark put and get helpers. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@sophos.com> Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/notify/mark.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/notify/mark.c b/fs/notify/mark.c
index 325185e514bb..efe16e43e701 100644
--- a/fs/notify/mark.c
+++ b/fs/notify/mark.c
@@ -103,17 +103,6 @@ static DEFINE_SPINLOCK(destroy_lock);
static LIST_HEAD(destroy_list);
static DECLARE_WAIT_QUEUE_HEAD(destroy_waitq);
-void fsnotify_get_mark(struct fsnotify_mark *mark)
-{
- atomic_inc(&mark->refcnt);
-}
-
-void fsnotify_put_mark(struct fsnotify_mark *mark)
-{
- if (atomic_dec_and_test(&mark->refcnt))
- mark->free_mark(mark);
-}
-
/*
* Any time a mark is getting freed we end up here.
* The caller had better be holding a reference to this mark so we don't actually