Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-3006 utils: mount to pass/clear UPDATE flag
[fs/lustre-release.git]
/
lustre
/
osc
/
osc_dev.c
diff --git
a/lustre/osc/osc_dev.c
b/lustre/osc/osc_dev.c
index
a0216e3
..
caccc7a
100644
(file)
--- 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.
* 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) 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/
*/
/*
* 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_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[] = {
{
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)
.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_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
}
};
.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)
{
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);
}
RETURN(0);
}