Skip to content

Commit

Permalink
[GFS2] [-mm patch] fs/gfs2/: make code static
Browse files Browse the repository at this point in the history
This patch makes the following needlessly global code static:
- eaops.c: struct gfs2_security_eaops
- rgrp.c: gfs2_free_uninit_di()

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
AdrianBunk authored and swhiteho committed Jun 22, 2006
1 parent faf450e commit 43f5d21
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fs/gfs2/eaops.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ struct gfs2_eattr_operations gfs2_system_eaops = {
.eo_name = "system",
};

struct gfs2_eattr_operations gfs2_security_eaops = {
static struct gfs2_eattr_operations gfs2_security_eaops = {
.eo_get = security_eo_get,
.eo_set = security_eo_set,
.eo_remove = security_eo_remove,
Expand Down
2 changes: 0 additions & 2 deletions fs/gfs2/eaops.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ unsigned int gfs2_ea_name2type(const char *name, char **truncated_name);

extern struct gfs2_eattr_operations gfs2_system_eaops;

extern struct gfs2_eattr_operations gfs2_security_eaops;

extern struct gfs2_eattr_operations *gfs2_ea_ops[];

#endif /* __EAOPS_DOT_H__ */
Expand Down
2 changes: 1 addition & 1 deletion fs/gfs2/rgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ void gfs2_unlink_di(struct inode *inode)
gfs2_trans_add_rg(rgd);
}

void gfs2_free_uninit_di(struct gfs2_rgrpd *rgd, uint64_t blkno)
static void gfs2_free_uninit_di(struct gfs2_rgrpd *rgd, uint64_t blkno)
{
struct gfs2_sbd *sdp = rgd->rd_sbd;
struct gfs2_rgrpd *tmp_rgd;
Expand Down
1 change: 0 additions & 1 deletion fs/gfs2/rgrp.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ uint64_t gfs2_alloc_di(struct gfs2_inode *ip);

void gfs2_free_data(struct gfs2_inode *ip, uint64_t bstart, uint32_t blen);
void gfs2_free_meta(struct gfs2_inode *ip, uint64_t bstart, uint32_t blen);
void gfs2_free_uninit_di(struct gfs2_rgrpd *rgd, uint64_t blkno);
void gfs2_free_di(struct gfs2_rgrpd *rgd, struct gfs2_inode *ip);
void gfs2_unlink_di(struct inode *inode);

Expand Down

0 comments on commit 43f5d21

Please sign in to comment.