Skip to content

Commit 01ffb56

Browse files
jankaratorvalds
authored andcommitted
ocfs2: make ocfs2_set_acl() static
The function is never called outside of fs/ocfs2/acl.c. Link: http://lkml.kernel.org/r/20170801141252.19675-2-jack@suse.cz Signed-off-by: Jan Kara <jack@suse.cz> Cc: Mark Fasheh <mfasheh@versity.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Junxiao Bi <junxiao.bi@oracle.com> Cc: Joseph Qi <jiangqi903@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 6124c04 commit 01ffb56

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

fs/ocfs2/acl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ static int ocfs2_acl_set_mode(struct inode *inode, struct buffer_head *di_bh,
221221
/*
222222
* Set the access or default ACL of an inode.
223223
*/
224-
int ocfs2_set_acl(handle_t *handle,
224+
static int ocfs2_set_acl(handle_t *handle,
225225
struct inode *inode,
226226
struct buffer_head *di_bh,
227227
int type,

fs/ocfs2/acl.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ struct ocfs2_acl_entry {
2828

2929
struct posix_acl *ocfs2_iop_get_acl(struct inode *inode, int type);
3030
int ocfs2_iop_set_acl(struct inode *inode, struct posix_acl *acl, int type);
31-
int ocfs2_set_acl(handle_t *handle,
32-
struct inode *inode,
33-
struct buffer_head *di_bh,
34-
int type,
35-
struct posix_acl *acl,
36-
struct ocfs2_alloc_context *meta_ac,
37-
struct ocfs2_alloc_context *data_ac);
3831
extern int ocfs2_acl_chmod(struct inode *, struct buffer_head *);
3932
extern int ocfs2_init_acl(handle_t *, struct inode *, struct inode *,
4033
struct buffer_head *, struct buffer_head *,

0 commit comments

Comments
 (0)