diff options
| author | Darrick J. Wong <[email protected]> | 2024-07-02 18:22:39 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2024-07-02 18:36:57 +0000 |
| commit | c0223b8d66d2b3e8fed86fd80699ef2fef3e53af (patch) | |
| tree | e31938ee05e5a598cc51d6bc8eb311e40f1dbfec /fs/xfs/xfs_inode.h | |
| parent | xfs: push xfs_icreate_args creation out of xfs_create* (diff) | |
| download | kernel-c0223b8d66d2b3e8fed86fd80699ef2fef3e53af.tar.gz kernel-c0223b8d66d2b3e8fed86fd80699ef2fef3e53af.zip | |
xfs: wrap inode creation dqalloc calls
Create a helper that calls dqalloc to allocate and grab a reference to
dquots for the user, group, and project ids listed in an icreate
structure. This simplifies the creat-related dqalloc callsites
scattered around the code base.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
| -rw-r--r-- | fs/xfs/xfs_inode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index bc48e81829b5..a905929494bd 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h @@ -660,4 +660,8 @@ void xfs_dir_hook_setup(struct xfs_dir_hook *hook, notifier_fn_t mod_fn); # define xfs_dir_update_hook(dp, ip, delta, name) ((void)0) #endif /* CONFIG_XFS_LIVE_HOOKS */ +int xfs_icreate_dqalloc(const struct xfs_icreate_args *args, + struct xfs_dquot **udqpp, struct xfs_dquot **gdqpp, + struct xfs_dquot **pdqpp); + #endif /* __XFS_INODE_H__ */ |
