diff options
| -rw-r--r-- | fs/xfs/xfs_inode.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index c96bdeda23b..6f318eeac40 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
| @@ -2557,12 +2557,9 @@ xfs_iflush_fork( | |||
| 2557 | case XFS_DINODE_FMT_EXTENTS: | 2557 | case XFS_DINODE_FMT_EXTENTS: |
| 2558 | ASSERT((ifp->if_flags & XFS_IFEXTENTS) || | 2558 | ASSERT((ifp->if_flags & XFS_IFEXTENTS) || |
| 2559 | !(iip->ili_format.ilf_fields & extflag[whichfork])); | 2559 | !(iip->ili_format.ilf_fields & extflag[whichfork])); |
| 2560 | ASSERT((xfs_iext_get_ext(ifp, 0) != NULL) || | ||
| 2561 | (ifp->if_bytes == 0)); | ||
| 2562 | ASSERT((xfs_iext_get_ext(ifp, 0) == NULL) || | ||
| 2563 | (ifp->if_bytes > 0)); | ||
| 2564 | if ((iip->ili_format.ilf_fields & extflag[whichfork]) && | 2560 | if ((iip->ili_format.ilf_fields & extflag[whichfork]) && |
| 2565 | (ifp->if_bytes > 0)) { | 2561 | (ifp->if_bytes > 0)) { |
| 2562 | ASSERT(xfs_iext_get_ext(ifp, 0)); | ||
| 2566 | ASSERT(XFS_IFORK_NEXTENTS(ip, whichfork) > 0); | 2563 | ASSERT(XFS_IFORK_NEXTENTS(ip, whichfork) > 0); |
| 2567 | (void)xfs_iextents_copy(ip, (xfs_bmbt_rec_t *)cp, | 2564 | (void)xfs_iextents_copy(ip, (xfs_bmbt_rec_t *)cp, |
| 2568 | whichfork); | 2565 | whichfork); |
