X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosc%2Fosc_dev.c;h=caccc7a5d1f76c8c74471260e9f16b996716c729;hb=10cf5e4ec079fed1fa339240e00c027232f7971e;hp=a0216e352493b4879d6264e0aefde396190e08cb;hpb=e768e65ce59b6294813b538f308049ae2cbe74a0;p=fs%2Flustre-release.git diff --git a/lustre/osc/osc_dev.c b/lustre/osc/osc_dev.c index a0216e3..caccc7a 100644 --- a/lustre/osc/osc_dev.c +++ b/lustre/osc/osc_dev.c @@ -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) 2008, 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/ @@ -49,20 +49,16 @@ * @{ */ -cfs_mem_cache_t *osc_page_kmem; cfs_mem_cache_t *osc_lock_kmem; cfs_mem_cache_t *osc_object_kmem; cfs_mem_cache_t *osc_thread_kmem; cfs_mem_cache_t *osc_session_kmem; cfs_mem_cache_t *osc_req_kmem; +cfs_mem_cache_t *osc_extent_kmem; +cfs_mem_cache_t *osc_quota_kmem; struct lu_kmem_descr osc_caches[] = { { - .ckd_cache = &osc_page_kmem, - .ckd_name = "osc_page_kmem", - .ckd_size = sizeof (struct osc_page) - }, - { .ckd_cache = &osc_lock_kmem, .ckd_name = "osc_lock_kmem", .ckd_size = sizeof (struct osc_lock) @@ -88,11 +84,21 @@ struct lu_kmem_descr osc_caches[] = { .ckd_size = sizeof (struct osc_req) }, { + .ckd_cache = &osc_extent_kmem, + .ckd_name = "osc_extent_kmem", + .ckd_size = sizeof (struct osc_extent) + }, + { + .ckd_cache = &osc_quota_kmem, + .ckd_name = "osc_quota_kmem", + .ckd_size = sizeof(struct osc_quota_info) + }, + { .ckd_cache = NULL } }; -cfs_lock_class_key_t osc_ast_guard_class; +struct lock_class_key osc_ast_guard_class; /***************************************************************************** * @@ -182,9 +188,6 @@ static const struct cl_device_operations osc_cl_ops = { static int osc_device_init(const struct lu_env *env, struct lu_device *d, const char *name, struct lu_device *next) { - struct osc_device *od = lu2osc_dev(d); - - od->od_lockless_truncate = 1; RETURN(0); }