diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-08-31 00:36:49 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-09-01 17:58:19 +0200 |
commit | 390b4775d6787706b1846f15623a68e576ec900c (patch) | |
tree | dc26d7c3556b36dc24fad7674b5674353f600762 /fs/xfs/xfs_symlink.c | |
parent | xfs: match on the global RT inode numbers in xfs_is_metadata_inode (diff) | |
download | linux-390b4775d6787706b1846f15623a68e576ec900c.tar.xz linux-390b4775d6787706b1846f15623a68e576ec900c.zip |
xfs: pass the icreate args object to xfs_dialloc
Pass the xfs_icreate_args object to xfs_dialloc since we can extract the
relevant mode (really just the file type) and parent inumber from there.
This simplifies the calling convention in preparation for the next
patch.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_symlink.c')
-rw-r--r-- | fs/xfs/xfs_symlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_symlink.c b/fs/xfs/xfs_symlink.c index 77f19e2f66e0..4252b07cd251 100644 --- a/fs/xfs/xfs_symlink.c +++ b/fs/xfs/xfs_symlink.c @@ -165,7 +165,7 @@ xfs_symlink( /* * Allocate an inode for the symlink. */ - error = xfs_dialloc(&tp, dp->i_ino, S_IFLNK, &ino); + error = xfs_dialloc(&tp, &args, &ino); if (!error) error = xfs_icreate(tp, ino, &args, &du.ip); if (error) |