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-8769 lnet: removal of obsolete LNDs
[fs/lustre-release.git]
/
lustre
/
fid
/
fid_store.c
diff --git
a/lustre/fid/fid_store.c
b/lustre/fid/fid_store.c
index
8e86091
..
8cd6c41
100644
(file)
--- a/
lustre/fid/fid_store.c
+++ b/
lustre/fid/fid_store.c
@@
-15,11
+15,7
@@
*
* You should have received a copy of the GNU General Public License
* version 2 along with this program; If not, see
*
* You should have received a copy of the GNU General Public License
* version 2 along with this program; If not, see
- * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
+ * http://www.gnu.org/licenses/gpl-2.0.html
*
* GPL HEADER END
*/
*
* GPL HEADER END
*/
@@
-27,7
+23,7
@@
* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2011, 201
3
, Intel Corporation.
+ * Copyright (c) 2011, 201
4
, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
*/
/*
* This file is part of Lustre, http://www.lustre.org/
@@
-44,9
+40,7
@@
#include <libcfs/libcfs.h>
#include <dt_object.h>
#include <libcfs/libcfs.h>
#include <dt_object.h>
-#include <md_object.h>
#include <obd_support.h>
#include <obd_support.h>
-#include <lustre_capa.h>
#include <lustre_fid.h>
#include <lustre_fld.h>
#include "fid_internal.h"
#include <lustre_fid.h>
#include <lustre_fld.h>
#include "fid_internal.h"
@@
-94,9
+88,8
@@
int seq_update_cb_add(struct thandle *th, struct lu_server_seq *seq)
dcb = &ccb->suc_cb;
dcb->dcb_func = seq_update_cb;
dcb = &ccb->suc_cb;
dcb->dcb_func = seq_update_cb;
- CFS_INIT_LIST_HEAD(&dcb->dcb_linkage);
- strncpy(dcb->dcb_name, "seq_update_cb", MAX_COMMIT_CB_STR_LEN);
- dcb->dcb_name[MAX_COMMIT_CB_STR_LEN - 1] = '\0';
+ INIT_LIST_HEAD(&dcb->dcb_linkage);
+ strlcpy(dcb->dcb_name, "seq_update_cb", sizeof(dcb->dcb_name));
rc = dt_trans_cb_add(th, dcb);
if (rc)
rc = dt_trans_cb_add(th, dcb);
if (rc)
@@
-182,9
+175,7
@@
int seq_store_read(struct lu_server_seq *seq,
info = lu_context_key_get(&env->le_ctx, &seq_thread_key);
LASSERT(info != NULL);
info = lu_context_key_get(&env->le_ctx, &seq_thread_key);
LASSERT(info != NULL);
- rc = seq->lss_obj->do_body_ops->dbo_read(env, seq->lss_obj,
- seq_store_buf(info),
- &pos, BYPASS_CAPA);
+ rc = dt_read(env, seq->lss_obj, seq_store_buf(info), &pos);
if (rc == sizeof(info->sti_space)) {
range_le_to_cpu(&seq->lss_space, &info->sti_space);
if (rc == sizeof(info->sti_space)) {
range_le_to_cpu(&seq->lss_space, &info->sti_space);