summaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2021-04-07 00:59:03 +0200
committerAndreas Gruenbacher <agruenba@redhat.com>2021-04-08 15:07:21 +0200
commita4122a95ce6a6058a75266a3603f0e27721e5dd3 (patch)
tree12a5ea9506fc8e33c24be9d04ee83c1fcaba8126 /fs/gfs2
parentgfs2: Add new sysfs file for gfs2 status (diff)
downloadlinux-a4122a95ce6a6058a75266a3603f0e27721e5dd3.tar.xz
linux-a4122a95ce6a6058a75266a3603f0e27721e5dd3.zip
gfs2: Make gfs2_setattr_simple static
This function is only used in inode.c. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/inode.c2
-rw-r--r--fs/gfs2/inode.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index c9775d5c6594..13d6e55d19e4 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -1882,7 +1882,7 @@ static int __gfs2_setattr_simple(struct inode *inode, struct iattr *attr)
* Returns: errno
*/
-int gfs2_setattr_simple(struct inode *inode, struct iattr *attr)
+static int gfs2_setattr_simple(struct inode *inode, struct iattr *attr)
{
int error;
diff --git a/fs/gfs2/inode.h b/fs/gfs2/inode.h
index c447bd5b3017..f414bbc343f8 100644
--- a/fs/gfs2/inode.h
+++ b/fs/gfs2/inode.h
@@ -101,7 +101,6 @@ extern struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
int is_root);
extern int gfs2_permission(struct user_namespace *mnt_userns,
struct inode *inode, int mask);
-extern int gfs2_setattr_simple(struct inode *inode, struct iattr *attr);
extern struct inode *gfs2_lookup_simple(struct inode *dip, const char *name);
extern void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf);
extern int gfs2_open_common(struct inode *inode, struct file *file);