Skip to contentSkip to conversation

ocfs2: make ocfs2_set_acl() static

PATCH In review [email protected] 1 participant 1 message Sep 6, 2017 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 11/119 ocfs2: make ocfs2_set_acl() static

From: Jan Kara <[email protected]>
Subject: ocfs2: make ocfs2_set_acl() static

The function is never called outside of fs/ocfs2/acl.c.

---

 fs/ocfs2/acl.c |    2 +-
 fs/ocfs2/acl.h |    7 -------
 2 files changed, 1 insertion(+), 8 deletions(-)
fs/ocfs2/acl.c renamed from fs/ocfs2/acl.c~ocfs2-make-ocfs2_set_acl-static +1 -1
diff -puN fs/ocfs2/acl.c~ocfs2-make-ocfs2_set_acl-static fs/ocfs2/acl.c
@@ -221,7 +221,7 @@ out:
 /*
  * Set the access or default ACL of an inode.
  */
-int ocfs2_set_acl(handle_t *handle,
+static int ocfs2_set_acl(handle_t *handle,
 			 struct inode *inode,
 			 struct buffer_head *di_bh,
 			 int type,
fs/ocfs2/acl.h renamed from fs/ocfs2/acl.h~ocfs2-make-ocfs2_set_acl-static +0 -7
diff -puN fs/ocfs2/acl.h~ocfs2-make-ocfs2_set_acl-static fs/ocfs2/acl.h
@@ -28,13 +28,6 @@ struct ocfs2_acl_entry {
 
 struct posix_acl *ocfs2_iop_get_acl(struct inode *inode, int type);
 int ocfs2_iop_set_acl(struct inode *inode, struct posix_acl *acl, int type);
-int ocfs2_set_acl(handle_t *handle,
-			 struct inode *inode,
-			 struct buffer_head *di_bh,
-			 int type,
-			 struct posix_acl *acl,
-			 struct ocfs2_alloc_context *meta_ac,
-			 struct ocfs2_alloc_context *data_ac);
 extern int ocfs2_acl_chmod(struct inode *, struct buffer_head *);
 extern int ocfs2_init_acl(handle_t *, struct inode *, struct inode *,
 			  struct buffer_head *, struct buffer_head *,

_