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-11-29 14:51:24 -0500
commit620be5ffd5760365677d22453e5c3fe1b149854f (patch)
tree451238c4557f9545578fa9aeffb482c5d26fba00 /fs
parenta1bcea69f8762229a06245640bf1c09d8e4dca56 (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