summaryrefslogtreecommitdiff
path: root/fs/orangefs/orangefs-utils.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-01-23 22:04:31 +0300
committerMike Marshall <hubcap@omnibond.com>2016-01-23 23:20:11 +0300
commit115b93a8595c878759c7c1fdbd95fbbeacbe9168 (patch)
tree7af85d0290e25d5cd6a25eec67e205233e0ce5a4 /fs/orangefs/orangefs-utils.c
parentb0bc3a7b621cb8d7bcce507f323249a7340f4141 (diff)
downloadlinux-115b93a8595c878759c7c1fdbd95fbbeacbe9168.tar.xz
orangefs: clean up op_alloc()
fold orangefs_op_initialize() in there, don't bother locking something nobody else could've seen yet, use kmem_cache_zalloc() instead of explicit memset()... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-utils.c')
-rw-r--r--fs/orangefs/orangefs-utils.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/orangefs/orangefs-utils.c b/fs/orangefs/orangefs-utils.c
index ca7edcfae873..92a38b0091f2 100644
--- a/fs/orangefs/orangefs-utils.c
+++ b/fs/orangefs/orangefs-utils.c
@@ -593,22 +593,6 @@ int orangefs_cancel_op_in_progress(__u64 tag)
return ret;
}
-void orangefs_op_initialize(struct orangefs_kernel_op_s *op)
-{
- if (op) {
- spin_lock(&op->lock);
- init_completion(&op->done);
-
- op->upcall.type = ORANGEFS_VFS_OP_INVALID;
- op->downcall.type = ORANGEFS_VFS_OP_INVALID;
- op->downcall.status = -1;
-
- op->op_state = OP_VFS_STATE_UNKNOWN;
- op->tag = 0;
- spin_unlock(&op->lock);
- }
-}
-
void orangefs_make_bad_inode(struct inode *inode)
{
if (is_root_handle(inode)) {