projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5af7777
)
xfs: assert locking precondition in xfs_readlink_bmap_ilocked
author
Christoph Hellwig
<hch@lst.de>
Thu, 13 Jul 2017 19:14:34 +0000
(12:14 -0700)
committer
Darrick J. Wong
<darrick.wong@oracle.com>
Thu, 13 Jul 2017 21:55:05 +0000
(14:55 -0700)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_symlink.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/xfs/xfs_symlink.c
b/fs/xfs/xfs_symlink.c
index 12cd9cf7de416f03890ad09f108c2a8f9e0c505a..23a50d7aa46a738fb3f4e73c343d2d39f363aa55 100644
(file)
--- a/
fs/xfs/xfs_symlink.c
+++ b/
fs/xfs/xfs_symlink.c
@@
-61,6
+61,8
@@
xfs_readlink_bmap_ilocked(
int fsblocks = 0;
int offset;
+ ASSERT(xfs_isilocked(ip, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL));
+
fsblocks = xfs_symlink_blocks(mp, pathlen);
error = xfs_bmapi_read(ip, 0, fsblocks, mval, &nmaps, 0);
if (error)