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

Commit 3471394b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Lachlan McIlroy
Browse files

[XFS] fix instant oops with tracing enabled



We can only read inode->i_count if the inode is actually there and not a
NULL pointer. This was introduced in one of the recent sync patches.

SGI-PV: 988255

SGI-Modid: xfs-linux-melb:xfs-kern:32315a

Signed-off-by: default avatarChristoph Hellwig <hch@infradead.org>
Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
parent 76bf105c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ static inline int xfs_icount(struct xfs_inode *ip)
{
	struct inode *inode = VFS_I(ip);

	if (!inode)
	if (inode)
		return atomic_read(&inode->i_count);
	return -1;
}