X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fost%2Fost_internal.h;h=f8c84d257acd47361e66d46c10f4ac67ac198b91;hb=39875f183c5f902459aa5072f2abf69ebd179cfd;hp=df3a1f60818aed449990d327cb0bfb5ee723a2a0;hpb=f95393b0d0a59cf3dc2f29cffc35dcc4cc9d7728;p=fs%2Flustre-release.git diff --git a/lustre/ost/ost_internal.h b/lustre/ost/ost_internal.h index df3a1f60..f8c84d2 100644 --- a/lustre/ost/ost_internal.h +++ b/lustre/ost/ost_internal.h @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -28,6 +26,8 @@ /* * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. + * + * Copyright (c) 2012, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -64,12 +64,6 @@ struct ost_thread_local_cache { struct ost_thread_local_cache *ost_tls(struct ptlrpc_request *r); -#define OSS_MIN_CREATE_THREADS 2UL -#define OSS_MAX_CREATE_THREADS 16UL - -/* Quota stuff */ -extern quota_interface_t *quota_interface; - #ifdef LPROCFS void lprocfs_ost_init_vars(struct lprocfs_static_vars *lvars); #else @@ -79,20 +73,4 @@ static void lprocfs_ost_init_vars(struct lprocfs_static_vars *lvars) } #endif -/* Here "ostid" maybe part of "oa", the return value of "ostid_id()" depends on - * the original "ostid->oi_seq", which maybe changed by the assignment of - * "oa->o_seq = ostid_seq(ostid)", so keep the order of setting "oa->o_id" and - * "oa->o_seq". */ -static inline void obdo_from_ostid(struct obdo *oa, struct ost_id *ostid) -{ - oa->o_id = ostid_id(ostid); - oa->o_seq = ostid_seq(ostid); -} - -static inline void ioobj_from_obdo(struct obd_ioobj *ioobj, struct obdo *oa) -{ - ioobj->ioo_id = oa->o_id; - ioobj->ioo_seq = oa->o_seq; -} - #endif /* OST_INTERNAL_H */