/* protected versions of growfs function acquire and release locks on the mount point - exported through ioctls: XFS_IOC_FSGROWFSDATA, XFS_IOC_FSGROWFSLOG, XFS_IOC_FSGROWFSRT  */
int xfs_growfs_data(xfs_mount_t *mp, xfs_growfs_data_t *in)
/* protected versions of growfs function acquire and release locks on the mount point - exported through ioctls: XFS_IOC_FSGROWFSDATA, XFS_IOC_FSGROWFSLOG, XFS_IOC_FSGROWFSRT  */
int xfs_growfs_data(xfs_mount_t *mp, xfs_growfs_data_t *in)
{
	int error;
	if (!capable(CAP_SYS_ADMIN))
		return XFS_ERROR(EPERM);
	if (!mutex_trylock(&mp->m_growlock))
		return XFS_ERROR(EWOULDBLOCK);
	error = xfs_growfs_data_private(mp, in);
	mutex_unlock(&mp->m_growlock);
	return error;
}