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

Commit cca28fb8 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Alex Elder
Browse files

xfs: split xfs_itrace_entry



Replace the xfs_itrace_entry catchall with specific trace points.  For
most simple callers we now use the simple inode class, which used to
be the iget class, but add more details tracing for namespace events,
which now includes the name of the directory entries manipulated.

Remove the xfs_inactive trace point, which is a duplicate of the clear_inode
one, and the xfs_change_file_space trace point, which is immediately
followed by the more specific alloc/free space trace points.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
parent f2d67614
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -225,7 +225,7 @@ xfs_check_acl(struct inode *inode, int mask)
	struct posix_acl *acl;
	int error = -EAGAIN;

	xfs_itrace_entry(ip);
	trace_xfs_check_acl(ip);

	/*
	 * If there is no attribute fork no ACL exists on this inode and
+1 −1
Original line number Diff line number Diff line
@@ -1513,7 +1513,7 @@ xfs_vm_bmap(
	struct inode		*inode = (struct inode *)mapping->host;
	struct xfs_inode	*ip = XFS_I(inode);

	xfs_itrace_entry(XFS_I(inode));
	trace_xfs_vm_bmap(XFS_I(inode));
	xfs_ilock(ip, XFS_IOLOCK_SHARED);
	xfs_flush_pages(ip, (xfs_off_t)0, -1, 0, FI_REMAPF);
	xfs_iunlock(ip, XFS_IOLOCK_SHARED);
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ xfs_file_fsync(
	int			error = 0;
	int			log_flushed = 0;

	xfs_itrace_entry(ip);
	trace_xfs_file_fsync(ip);

	if (XFS_FORCED_SHUTDOWN(ip->i_mount))
		return -XFS_ERROR(EIO);
+2 −2
Original line number Diff line number Diff line
@@ -899,7 +899,7 @@ xfs_ioctl_setattr(
	struct xfs_dquot	*olddquot = NULL;
	int			code;

	xfs_itrace_entry(ip);
	trace_xfs_ioctl_setattr(ip);

	if (mp->m_flags & XFS_MOUNT_RDONLY)
		return XFS_ERROR(EROFS);
@@ -1282,7 +1282,7 @@ xfs_file_ioctl(
	if (filp->f_mode & FMODE_NOCMTIME)
		ioflags |= IO_INVIS;

	xfs_itrace_entry(ip);
	trace_xfs_file_ioctl(ip);

	switch (cmd) {
	case XFS_IOC_ALLOCSP:
+1 −1
Original line number Diff line number Diff line
@@ -540,7 +540,7 @@ xfs_file_compat_ioctl(
	if (filp->f_mode & FMODE_NOCMTIME)
		ioflags |= IO_INVIS;

	xfs_itrace_entry(ip);
	trace_xfs_file_compat_ioctl(ip);

	switch (cmd) {
	/* No size or alignment issues on any arch */
Loading