summaryrefslogtreecommitdiffstats
path: root/fs/orangefs/orangefs-cache.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-02-18 19:17:51 -0500
committerMike Marshall <hubcap@omnibond.com>2016-02-19 13:45:56 -0500
commitc1223ca48baa867e9abc77fbb7f97500dc2a0cf8 (patch)
treeda56a5a984ccae1556fba8932b270d0b88cfd920 /fs/orangefs/orangefs-cache.c
parent05a50a5be897004b6c1399645256bcf2e768b4ef (diff)
downloadlinux-0-day-c1223ca48baa867e9abc77fbb7f97500dc2a0cf8.tar.gz
linux-0-day-c1223ca48baa867e9abc77fbb7f97500dc2a0cf8.tar.xz
orangefs: get rid of op refcounts
not needed anymore Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-cache.c')
-rw-r--r--fs/orangefs/orangefs-cache.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/orangefs/orangefs-cache.c b/fs/orangefs/orangefs-cache.c
index 817092a14429c..900a2e38e11bc 100644
--- a/fs/orangefs/orangefs-cache.c
+++ b/fs/orangefs/orangefs-cache.c
@@ -120,8 +120,6 @@ struct orangefs_kernel_op_s *op_alloc(__s32 type)
spin_lock_init(&new_op->lock);
init_completion(&new_op->waitq);
- atomic_set(&new_op->ref_count, 1);
-
new_op->upcall.type = ORANGEFS_VFS_OP_INVALID;
new_op->downcall.type = ORANGEFS_VFS_OP_INVALID;
new_op->downcall.status = -1;
@@ -149,7 +147,7 @@ struct orangefs_kernel_op_s *op_alloc(__s32 type)
return new_op;
}
-void __op_release(struct orangefs_kernel_op_s *orangefs_op)
+void op_release(struct orangefs_kernel_op_s *orangefs_op)
{
if (orangefs_op) {
gossip_debug(GOSSIP_CACHE_DEBUG,