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-6865 mdd: check return value of posix_acl_from_xattr
[fs/lustre-release.git]
/
lustre
/
mdd
/
mdd_lock.c
diff --git
a/lustre/mdd/mdd_lock.c
b/lustre/mdd/mdd_lock.c
index
2d33a16
..
0db27f3
100644
(file)
--- a/
lustre/mdd/mdd_lock.c
+++ b/
lustre/mdd/mdd_lock.c
@@
-27,7
+27,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) 2012, Intel Corporation.
+ * Copyright (c) 2012,
2014,
Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
*/
/*
* This file is part of Lustre, http://www.lustre.org/
@@
-47,43
+47,38
@@
#include "mdd_internal.h"
void mdd_write_lock(const struct lu_env *env, struct mdd_object *obj,
#include "mdd_internal.h"
void mdd_write_lock(const struct lu_env *env, struct mdd_object *obj,
-
enum mdd_object_role role)
+ enum mdd_object_role role)
{
{
-
struct dt_object
*next = mdd_object_child(obj);
+
struct dt_object
*next = mdd_object_child(obj);
-
next->do_ops->do
_write_lock(env, next, role);
+
dt
_write_lock(env, next, role);
}
void mdd_read_lock(const struct lu_env *env, struct mdd_object *obj,
}
void mdd_read_lock(const struct lu_env *env, struct mdd_object *obj,
-
enum mdd_object_role role)
+ enum mdd_object_role role)
{
{
-
struct dt_object
*next = mdd_object_child(obj);
+
struct dt_object
*next = mdd_object_child(obj);
-
next->do_ops->do
_read_lock(env, next, role);
+
dt
_read_lock(env, next, role);
}
void mdd_write_unlock(const struct lu_env *env, struct mdd_object *obj)
{
}
void mdd_write_unlock(const struct lu_env *env, struct mdd_object *obj)
{
-
struct dt_object
*next = mdd_object_child(obj);
+
struct dt_object
*next = mdd_object_child(obj);
-
next->do_ops->do
_write_unlock(env, next);
+
dt
_write_unlock(env, next);
}
void mdd_read_unlock(const struct lu_env *env, struct mdd_object *obj)
{
}
void mdd_read_unlock(const struct lu_env *env, struct mdd_object *obj)
{
-
struct dt_object
*next = mdd_object_child(obj);
+
struct dt_object
*next = mdd_object_child(obj);
-
next->do_ops->do
_read_unlock(env, next);
+
dt
_read_unlock(env, next);
}
int mdd_write_locked(const struct lu_env *env, struct mdd_object *obj)
{
}
int mdd_write_locked(const struct lu_env *env, struct mdd_object *obj)
{
-
struct dt_object
*next = mdd_object_child(obj);
+
struct dt_object
*next = mdd_object_child(obj);
- return next->do_ops->do_write_locked(env, next);
-}
-
-unsigned long mdd_name2hash(const char *name)
-{
- return full_name_hash((unsigned char*)name, strlen(name));
+ return dt_write_locked(env, next);
}
}