mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
5da8f2f890
Expose the readlink variant that doesn't take the inode lock so that the scrubber can inspect symlink contents. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
29 lines
1.1 KiB
C
29 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2012 Red Hat, Inc. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it would be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write the Free Software Foundation,
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
#ifndef __XFS_SYMLINK_H
|
|
#define __XFS_SYMLINK_H 1
|
|
|
|
/* Kernel only symlink defintions */
|
|
|
|
int xfs_symlink(struct xfs_inode *dp, struct xfs_name *link_name,
|
|
const char *target_path, umode_t mode, struct xfs_inode **ipp);
|
|
int xfs_readlink_bmap_ilocked(struct xfs_inode *ip, char *link);
|
|
int xfs_readlink(struct xfs_inode *ip, char *link);
|
|
int xfs_inactive_symlink(struct xfs_inode *ip);
|
|
|
|
#endif /* __XFS_SYMLINK_H */
|