fs: port ->set_acl() to pass mnt_idmap
[linux-block.git] / fs / ocfs2 / acl.h
CommitLineData
1802d0be 1/* SPDX-License-Identifier: GPL-2.0-only */
fa60ce2c 2/*
929fb014
TY
3 * acl.h
4 *
5 * Copyright (C) 2004, 2008 Oracle. All rights reserved.
929fb014
TY
6 */
7
8#ifndef OCFS2_ACL_H
9#define OCFS2_ACL_H
10
11#include <linux/posix_acl_xattr.h>
12
13struct ocfs2_acl_entry {
14 __le16 e_tag;
15 __le16 e_perm;
16 __le32 e_id;
17};
18
0cad6246 19struct posix_acl *ocfs2_iop_get_acl(struct inode *inode, int type, bool rcu);
13e83a49 20int ocfs2_iop_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
549c7297 21 struct posix_acl *acl, int type);
5ee0fbd5 22extern int ocfs2_acl_chmod(struct inode *, struct buffer_head *);
c25a1e06
JB
23extern int ocfs2_init_acl(handle_t *, struct inode *, struct inode *,
24 struct buffer_head *, struct buffer_head *,
25 struct ocfs2_alloc_context *,
26 struct ocfs2_alloc_context *);
23fc2702 27
929fb014 28#endif /* OCFS2_ACL_H */