Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
1c2acc40
Commit
1c2acc40
authored
16 years ago
by
Nikita Danilov
Browse files
Options
Downloads
Patches
Plain Diff
lockdep build fixes for 2.6.18-53 (found by Shadow).
parent
d8b1d41e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lustre/mdd/mdd_internal.h
+8
-7
8 additions, 7 deletions
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_lock.c
+3
-3
3 additions, 3 deletions
lustre/mdd/mdd_lock.c
with
11 additions
and
10 deletions
lustre/mdd/mdd_internal.h
+
8
−
7
View file @
1c2acc40
...
...
@@ -115,7 +115,8 @@ struct mdd_object {
unsigned
long
mod_flags
;
struct
dynlock
mod_pdlock
;
#ifdef CONFIG_LOCKDEP
struct
lockdep_map
mod_dep_map_pdlock
;
/* "dep_map" name is assumed by lockdep.h macros. */
struct
lockdep_map
dep_map
;
#endif
};
...
...
@@ -553,7 +554,7 @@ static inline int mdo_xattr_get(const struct lu_env *env,struct mdd_object *obj,
static
inline
int
mdo_xattr_set
(
const
struct
lu_env
*
env
,
struct
mdd_object
*
obj
,
const
struct
lu_buf
*
buf
,
const
char
*
name
,
int
fl
,
struct
thandle
*
handle
,
int
fl
,
struct
thandle
*
handle
,
struct
lustre_capa
*
capa
)
{
struct
dt_object
*
next
=
mdd_object_child
(
obj
);
...
...
@@ -571,7 +572,7 @@ static inline int mdo_xattr_del(const struct lu_env *env,struct mdd_object *obj,
return
next
->
do_ops
->
do_xattr_del
(
env
,
next
,
name
,
handle
,
capa
);
}
static
inline
static
inline
int
mdo_xattr_list
(
const
struct
lu_env
*
env
,
struct
mdd_object
*
obj
,
struct
lu_buf
*
buf
,
struct
lustre_capa
*
capa
)
{
...
...
@@ -580,7 +581,7 @@ int mdo_xattr_list(const struct lu_env *env, struct mdd_object *obj,
return
next
->
do_ops
->
do_xattr_list
(
env
,
next
,
buf
,
capa
);
}
static
inline
static
inline
int
mdo_index_try
(
const
struct
lu_env
*
env
,
struct
mdd_object
*
obj
,
const
struct
dt_index_features
*
feat
)
{
...
...
@@ -604,8 +605,8 @@ static inline void mdo_ref_del(const struct lu_env *env, struct mdd_object *obj,
return
next
->
do_ops
->
do_ref_del
(
env
,
next
,
handle
);
}
static
inline
int
mdo_create_obj
(
const
struct
lu_env
*
env
,
struct
mdd_object
*
o
,
static
inline
int
mdo_create_obj
(
const
struct
lu_env
*
env
,
struct
mdd_object
*
o
,
struct
lu_attr
*
attr
,
struct
dt_allocation_hint
*
hint
,
struct
thandle
*
handle
)
...
...
@@ -615,7 +616,7 @@ int mdo_create_obj(const struct lu_env *env, struct mdd_object *o,
}
static
inline
struct
obd_capa
*
mdo_capa_get
(
const
struct
lu_env
*
env
,
struct
mdd_object
*
obj
,
struct
mdd_object
*
obj
,
struct
lustre_capa
*
old
,
__u64
opc
)
{
...
...
This diff is collapsed.
Click to expand it.
lustre/mdd/mdd_lock.c
+
3
−
3
View file @
1c2acc40
...
...
@@ -57,18 +57,18 @@ static struct lock_class_key mdd_pdirop_key;
static
void
mdd_lockdep_init
(
struct
mdd_object
*
obj
)
{
lockdep_
init_map
(
&
obj
->
mod_dep_map_pdlock
,
"pdir"
,
&
mdd_pdirop_key
);
lockdep_
set_class_and_name
(
obj
,
&
mdd_pdirop_key
,
"pdir"
);
}
static
void
mdd_lockdep_pd_acquire
(
struct
mdd_object
*
obj
,
enum
mdd_object_role
role
)
{
lock_acquire
(
&
obj
->
mod_
dep_map
_pdlock
,
role
,
0
,
1
,
2
,
RETIP
);
lock_acquire
(
&
obj
->
dep_map
,
role
,
0
,
1
,
2
,
RETIP
);
}
static
void
mdd_lockdep_pd_release
(
struct
mdd_object
*
obj
)
{
lock_release
(
&
obj
->
mod_
dep_map
_pdlock
,
0
,
RETIP
);
lock_release
(
&
obj
->
dep_map
,
0
,
RETIP
);
}
#else
/* !CONFIG_LOCKDEP */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment