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
a1d0fc77
Commit
a1d0fc77
authored
Apr 02, 2004
by
Nathan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Fix up mrlock debug code, and ensure its only built under DEBUG.
SGI Modid: xfs-linux:xfs-kern:167944a
parent
96531b37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
fs/xfs/linux/mrlock.h
fs/xfs/linux/mrlock.h
+3
-1
No files found.
fs/xfs/linux/mrlock.h
View file @
a1d0fc77
...
...
@@ -88,6 +88,7 @@ static inline void mrdemote(mrlock_t *mrp)
downgrade_write
(
&
mrp
->
mr_lock
);
}
#ifdef DEBUG
/*
* Debug-only routine, without some platform-specific asm code, we can
* now only answer requests regarding whether we hold the lock for write
...
...
@@ -96,9 +97,10 @@ static inline void mrdemote(mrlock_t *mrp)
*/
static
inline
int
ismrlocked
(
mrlock_t
*
mrp
,
int
type
)
{
if
(
type
==
MR_UPDATE
)
if
(
mrp
&&
type
==
MR_UPDATE
)
return
mrp
->
mr_writer
;
return
1
;
}
#endif
#endif
/* __XFS_SUPPORT_MRLOCK_H__ */
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