Skip to content

Commit a4122a9

Browse files
author
Andreas Gruenbacher
committed
gfs2: Make gfs2_setattr_simple static
This function is only used in inode.c. Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 9f9eb5a commit a4122a9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

fs/gfs2/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ static int __gfs2_setattr_simple(struct inode *inode, struct iattr *attr)
18821882
* Returns: errno
18831883
*/
18841884

1885-
int gfs2_setattr_simple(struct inode *inode, struct iattr *attr)
1885+
static int gfs2_setattr_simple(struct inode *inode, struct iattr *attr)
18861886
{
18871887
int error;
18881888

fs/gfs2/inode.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ extern struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
101101
int is_root);
102102
extern int gfs2_permission(struct user_namespace *mnt_userns,
103103
struct inode *inode, int mask);
104-
extern int gfs2_setattr_simple(struct inode *inode, struct iattr *attr);
105104
extern struct inode *gfs2_lookup_simple(struct inode *dip, const char *name);
106105
extern void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf);
107106
extern int gfs2_open_common(struct inode *inode, struct file *file);

0 commit comments

Comments
 (0)