| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] xfs: remove unneeded ASSERT from xfs_itruncate_extents |
| From: | Carlos Maiolino <cmaiolino@xxxxxxxxxx> |
| Date: | Mon, 28 Jan 2013 09:04:30 -0500 |
| Delivered-to: | xfs@xxxxxxxxxxx |
There is no reason to ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); twice, so,
remove one of these ASSERT calls
Signed-off-by: Carlos Maiolino <cmaiolino@xxxxxxxxxx>
---
fs/xfs/xfs_inode.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index 66282dc..25226ea 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -1396,8 +1396,7 @@ xfs_itruncate_extents(
int done = 0;
ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
- ASSERT(!atomic_read(&VFS_I(ip)->i_count) ||
- xfs_isilocked(ip, XFS_IOLOCK_EXCL));
+ ASSERT(!atomic_read(&VFS_I(ip)->i_count));
ASSERT(new_size <= XFS_ISIZE(ip));
ASSERT(tp->t_flags & XFS_TRANS_PERM_LOG_RES);
ASSERT(ip->i_itemp != NULL);
--
1.8.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH v2 2/2] xfsprogs: sync transaction log spaces changes to the user space, Jeff Liu |
|---|---|
| Next by Date: | Re: [PATCH v2 1/2] xfsprogs: sync xfs_calc_buf_res() to the user space, Mark Tinguely |
| Previous by Thread: | [PATCH v2 2/2] xfsprogs: sync transaction log spaces changes to the user space, Jeff Liu |
| Next by Thread: | Re: [PATCH] xfs: remove unneeded ASSERT from xfs_itruncate_extents, Mark Tinguely |
| Indexes: | [Date] [Thread] [Top] [All Lists] |