diff options
author | 2024-07-02 11:22:45 -0700 | |
---|---|---|
committer | 2024-07-02 11:36:59 -0700 | |
commit | 90636e4531a8bfb5ef37d38a76eb97e5f5793deb (patch) | |
tree | 65be6ccf1fab5af5596dbc5a3c5d458102ee19f4 /fs/xfs/libxfs/xfs_dir2.h | |
parent | xfs: hoist inode free function to libxfs (diff) | |
download | wireguard-linux-90636e4531a8bfb5ef37d38a76eb97e5f5793deb.tar.xz wireguard-linux-90636e4531a8bfb5ef37d38a76eb97e5f5793deb.zip |
xfs: create libxfs helper to remove an existing inode/name from a directory
Create a new libxfs function to remove a (name, inode) entry from a
directory. The upcoming metadata directory feature will need this to
create a metadata directory tree.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_dir2.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_dir2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_dir2.h b/fs/xfs/libxfs/xfs_dir2.h index 4f9711509571..c89916d1c040 100644 --- a/fs/xfs/libxfs/xfs_dir2.h +++ b/fs/xfs/libxfs/xfs_dir2.h @@ -322,5 +322,7 @@ int xfs_dir_create_child(struct xfs_trans *tp, unsigned int resblks, struct xfs_dir_update *du); int xfs_dir_add_child(struct xfs_trans *tp, unsigned int resblks, struct xfs_dir_update *du); +int xfs_dir_remove_child(struct xfs_trans *tp, unsigned int resblks, + struct xfs_dir_update *du); #endif /* __XFS_DIR2_H__ */ |