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
e8b65083
Commit
e8b65083
authored
Jan 09, 2004
by
Nathan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Remove assertion that we do not hold a lock - no lock ownership state available.
SGI Modid: 2.5.x-xfs:slinx:162250a
parent
6c39f81d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
25 deletions
+0
-25
fs/xfs/quota/xfs_dquot.c
fs/xfs/quota/xfs_dquot.c
+0
-2
fs/xfs/quota/xfs_qm.c
fs/xfs/quota/xfs_qm.c
+0
-16
fs/xfs/quota/xfs_trans_dquot.c
fs/xfs/quota/xfs_trans_dquot.c
+0
-7
No files found.
fs/xfs/quota/xfs_dquot.c
View file @
e8b65083
...
...
@@ -757,7 +757,6 @@ xfs_qm_idtodq(
}
*
O_dqpp
=
dqp
;
ASSERT
(
!
XFS_DQ_IS_LOCKED
(
dqp
));
return
(
0
);
error0:
...
...
@@ -1006,7 +1005,6 @@ xfs_qm_dqget(
/*
* Dquot lock comes after hashlock in the lock ordering
*/
ASSERT
(
!
XFS_DQ_IS_LOCKED
(
dqp
));
if
(
ip
)
{
xfs_ilock
(
ip
,
XFS_ILOCK_EXCL
);
if
(
!
XFS_IS_DQTYPE_ON
(
mp
,
type
))
{
...
...
fs/xfs/quota/xfs_qm.c
View file @
e8b65083
...
...
@@ -806,7 +806,6 @@ xfs_qm_dqattach_one(
ASSERT
(
XFS_DQ_IS_LOCKED
(
dqp
));
if
(
!
dolock
)
{
xfs_dqunlock
(
dqp
);
ASSERT
(
!
udqhint
||
!
XFS_DQ_IS_LOCKED
(
udqhint
));
goto
done
;
}
if
(
!
udqhint
)
...
...
@@ -814,7 +813,6 @@ xfs_qm_dqattach_one(
ASSERT
(
udqhint
);
ASSERT
(
dolock
);
ASSERT
(
!
XFS_DQ_IS_LOCKED
(
udqhint
));
ASSERT
(
XFS_DQ_IS_LOCKED
(
dqp
));
if
(
!
xfs_qm_dqlock_nowait
(
udqhint
))
{
xfs_dqunlock
(
dqp
);
...
...
@@ -826,14 +824,10 @@ xfs_qm_dqattach_one(
if
(
udqhint
)
{
if
(
dolock
)
ASSERT
(
XFS_DQ_IS_LOCKED
(
udqhint
));
else
ASSERT
(
!
XFS_DQ_IS_LOCKED
(
udqhint
));
}
if
(
!
error
)
{
if
(
dolock
)
ASSERT
(
XFS_DQ_IS_LOCKED
(
dqp
));
else
ASSERT
(
!
XFS_DQ_IS_LOCKED
(
dqp
));
}
#endif
return
(
error
);
...
...
@@ -860,9 +854,6 @@ xfs_qm_dqattach_grouphint(
if
(
locked
)
{
ASSERT
(
XFS_DQ_IS_LOCKED
(
udq
));
ASSERT
(
XFS_DQ_IS_LOCKED
(
gdq
));
}
else
{
ASSERT
(
!
XFS_DQ_IS_LOCKED
(
udq
));
ASSERT
(
!
XFS_DQ_IS_LOCKED
(
gdq
));
}
#endif
if
(
!
locked
)
...
...
@@ -890,15 +881,12 @@ xfs_qm_dqattach_grouphint(
*/
xfs_qm_dqrele
(
tmp
);
ASSERT
(
!
XFS_DQ_IS_LOCKED
(
udq
));
ASSERT
(
!
XFS_DQ_IS_LOCKED
(
gdq
));
xfs_dqlock
(
udq
);
xfs_dqlock
(
gdq
);
}
else
{
ASSERT
(
XFS_DQ_IS_LOCKED
(
udq
));
if
(
!
locked
)
{
ASSERT
(
!
XFS_DQ_IS_LOCKED
(
gdq
));
xfs_dqlock
(
gdq
);
}
}
...
...
@@ -1006,14 +994,10 @@ xfs_qm_dqattach(
if
(
ip
->
i_udquot
)
{
if
(
flags
&
XFS_QMOPT_DQLOCK
)
ASSERT
(
XFS_DQ_IS_LOCKED
(
ip
->
i_udquot
));
else
ASSERT
(
!
XFS_DQ_IS_LOCKED
(
ip
->
i_udquot
));
}
if
(
ip
->
i_gdquot
)
{
if
(
flags
&
XFS_QMOPT_DQLOCK
)
ASSERT
(
XFS_DQ_IS_LOCKED
(
ip
->
i_gdquot
));
else
ASSERT
(
!
XFS_DQ_IS_LOCKED
(
ip
->
i_gdquot
));
}
if
(
XFS_IS_UQUOTA_ON
(
mp
))
ASSERT
(
ip
->
i_udquot
);
...
...
fs/xfs/quota/xfs_trans_dquot.c
View file @
e8b65083
...
...
@@ -835,13 +835,6 @@ xfs_trans_reserve_quota_nblks(
ASSERT
(
ip
->
i_ino
!=
mp
->
m_sb
.
sb_uquotino
);
ASSERT
(
ip
->
i_ino
!=
mp
->
m_sb
.
sb_gquotino
);
#ifdef QUOTADEBUG
if
(
ip
->
i_udquot
)
ASSERT
(
!
XFS_DQ_IS_LOCKED
(
ip
->
i_udquot
));
if
(
ip
->
i_gdquot
)
ASSERT
(
!
XFS_DQ_IS_LOCKED
(
ip
->
i_gdquot
));
#endif
ASSERT
(
XFS_ISLOCKED_INODE_EXCL
(
ip
));
ASSERT
(
XFS_IS_QUOTA_RUNNING
(
ip
->
i_mount
));
ASSERT
((
type
&
~
XFS_QMOPT_FORCE_RES
)
==
XFS_TRANS_DQ_RES_RTBLKS
||
...
...
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