projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
xfs: assert that we hold the ilock for extent map access
[firefly-linux-kernel-4.4.55.git]
/
fs
/
xfs
/
xfs_inode_fork.c
diff --git
a/fs/xfs/xfs_inode_fork.c
b/fs/xfs/xfs_inode_fork.c
index cfee14a83cfe601d90bdc6732cc608746aaf3e03..e16985e1c2fdfe6e1ae1e78d0605011a773481b6 100644
(file)
--- a/
fs/xfs/xfs_inode_fork.c
+++ b/
fs/xfs/xfs_inode_fork.c
@@
-431,6
+431,8
@@
xfs_iread_extents(
xfs_ifork_t *ifp;
xfs_extnum_t nextents;
+ ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
+
if (unlikely(XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE)) {
XFS_ERROR_REPORT("xfs_iread_extents", XFS_ERRLEVEL_LOW,
ip->i_mount);