summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_imeta.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-07-14 11:15:11 -0700
committerDarrick J. Wong <djwong@kernel.org>2022-11-09 19:07:49 -0800
commit656900fadbd8ab0835a5ecd7dd7cf1554394c92d (patch)
tree2a5e62ba034a1cc98f14262964593ef7469b6eae /fs/xfs/libxfs/xfs_imeta.h
parent64932f9c30b3200134c5998b79a893fa6dc3a2c6 (diff)
xfs: ensure metadata directory paths exist before creating files
Since xfs_imeta_create can create new metadata files arbitrarily deep in the metadata directory tree, we must supply a function that can ensure that all directories in a path exist, and call it before the quota functions create the quota inodes. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_imeta.h')
-rw-r--r--fs/xfs/libxfs/xfs_imeta.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_imeta.h b/fs/xfs/libxfs/xfs_imeta.h
index 9b139f6809f0..741f426c6a4a 100644
--- a/fs/xfs/libxfs/xfs_imeta.h
+++ b/fs/xfs/libxfs/xfs_imeta.h
@@ -80,5 +80,7 @@ unsigned int xfs_imeta_unlink_space_res(struct xfs_mount *mp);
int xfs_imeta_iget(struct xfs_mount *mp, xfs_ino_t ino, unsigned char ftype,
struct xfs_inode **ipp);
void xfs_imeta_irele(struct xfs_inode *ip);
+int xfs_imeta_ensure_dirpath(struct xfs_mount *mp,
+ const struct xfs_imeta_path *path);
#endif /* __XFS_IMETA_H__ */