Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1661dc8e authored by Yingping Lu's avatar Yingping Lu Committed by Nathan Scott
Browse files

[XFS] Fixed an assertion failure in xfs_reclaim caused by delayed block.


The assertion failure came from XFS QA41. The fix is done by enabling
truncate for delayed block in xfs_inactive.

SGI-PV: 945412
SGI-Modid: xfs-linux-melb:xfs-kern:202521a

Signed-off-by: default avatarYingping Lu <yingping@sgi.com>
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent c7d437da
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1612,7 +1612,8 @@ xfs_inactive(
	 * only one with a reference to the inode.
	 * only one with a reference to the inode.
	 */
	 */
	truncate = ((ip->i_d.di_nlink == 0) &&
	truncate = ((ip->i_d.di_nlink == 0) &&
	    ((ip->i_d.di_size != 0) || (ip->i_d.di_nextents > 0)) &&
            ((ip->i_d.di_size != 0) || (ip->i_d.di_nextents > 0) ||
             (ip->i_delayed_blks > 0)) &&
	    ((ip->i_d.di_mode & S_IFMT) == S_IFREG));
	    ((ip->i_d.di_mode & S_IFMT) == S_IFREG));


	mp = ip->i_mount;
	mp = ip->i_mount;