Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a7d25539
Commit
a7d25539
authored
Apr 27, 2007
by
Mark Fasheh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ocfs2: fix sparse warnings in fs/ocfs2/dlm
Signed-off-by:
Mark Fasheh
<
mark.fasheh@oracle.com
>
parent
1ca1a111
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
fs/ocfs2/dlm/dlmast.c
fs/ocfs2/dlm/dlmast.c
+6
-6
fs/ocfs2/dlm/dlmrecovery.c
fs/ocfs2/dlm/dlmrecovery.c
+2
-2
No files found.
fs/ocfs2/dlm/dlmast.c
View file @
a7d25539
...
...
@@ -312,8 +312,8 @@ int dlm_proxy_ast_handler(struct o2net_msg *msg, u32 len, void *data,
past
->
type
!=
DLM_BAST
)
{
mlog
(
ML_ERROR
,
"Unknown ast type! %d, cookie=%u:%llu"
"name=%.*s
\n
"
,
past
->
type
,
dlm_get_lock_cookie_node
(
be64_to_cpu
(
cookie
)
),
dlm_get_lock_cookie_seq
(
be64_to_cpu
(
cookie
)
),
dlm_get_lock_cookie_node
(
cookie
),
dlm_get_lock_cookie_seq
(
cookie
),
locklen
,
name
);
ret
=
DLM_IVLOCKID
;
goto
leave
;
...
...
@@ -324,8 +324,8 @@ int dlm_proxy_ast_handler(struct o2net_msg *msg, u32 len, void *data,
mlog
(
0
,
"got %sast for unknown lockres! "
"cookie=%u:%llu, name=%.*s, namelen=%u
\n
"
,
past
->
type
==
DLM_AST
?
""
:
"b"
,
dlm_get_lock_cookie_node
(
be64_to_cpu
(
cookie
)
),
dlm_get_lock_cookie_seq
(
be64_to_cpu
(
cookie
)
),
dlm_get_lock_cookie_node
(
cookie
),
dlm_get_lock_cookie_seq
(
cookie
),
locklen
,
name
,
locklen
);
ret
=
DLM_IVLOCKID
;
goto
leave
;
...
...
@@ -370,8 +370,8 @@ int dlm_proxy_ast_handler(struct o2net_msg *msg, u32 len, void *data,
mlog
(
0
,
"got %sast for unknown lock! cookie=%u:%llu, "
"name=%.*s, namelen=%u
\n
"
,
past
->
type
==
DLM_AST
?
""
:
"b"
,
dlm_get_lock_cookie_node
(
be64_to_cpu
(
cookie
)
),
dlm_get_lock_cookie_seq
(
be64_to_cpu
(
cookie
)
),
dlm_get_lock_cookie_node
(
cookie
),
dlm_get_lock_cookie_seq
(
cookie
),
locklen
,
name
,
locklen
);
ret
=
DLM_NORMAL
;
...
...
fs/ocfs2/dlm/dlmrecovery.c
View file @
a7d25539
...
...
@@ -1769,7 +1769,7 @@ static int dlm_process_recovery_data(struct dlm_ctxt *dlm,
/* lock is always created locally first, and
* destroyed locally last. it must be on the list */
if
(
!
lock
)
{
u
64
c
=
ml
->
cookie
;
__be
64
c
=
ml
->
cookie
;
mlog
(
ML_ERROR
,
"could not find local lock "
"with cookie %u:%llu!
\n
"
,
dlm_get_lock_cookie_node
(
be64_to_cpu
(
c
)),
...
...
@@ -1878,7 +1878,7 @@ static int dlm_process_recovery_data(struct dlm_ctxt *dlm,
spin_lock
(
&
res
->
spinlock
);
list_for_each_entry
(
lock
,
queue
,
list
)
{
if
(
lock
->
ml
.
cookie
==
ml
->
cookie
)
{
u
64
c
=
lock
->
ml
.
cookie
;
__be
64
c
=
lock
->
ml
.
cookie
;
mlog
(
ML_ERROR
,
"%s:%.*s: %u:%llu: lock already "
"exists on this lockres!
\n
"
,
dlm
->
name
,
res
->
lockname
.
len
,
res
->
lockname
.
name
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment