Commit 43f5d210a02dcf9d8bafb147044f27add10a459a

Authored by Adrian Bunk
Committed by Steven Whitehouse
1 parent faf450ef4a

[GFS2] [-mm patch] fs/gfs2/: make code static

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>

Showing 4 changed files with 2 additions and 5 deletions Side-by-side Diff

... ... @@ -214,7 +214,7 @@
214 214 .eo_name = "system",
215 215 };
216 216  
217   -struct gfs2_eattr_operations gfs2_security_eaops = {
  217 +static struct gfs2_eattr_operations gfs2_security_eaops = {
218 218 .eo_get = security_eo_get,
219 219 .eo_set = security_eo_set,
220 220 .eo_remove = security_eo_remove,
... ... @@ -23,8 +23,6 @@
23 23  
24 24 extern struct gfs2_eattr_operations gfs2_system_eaops;
25 25  
26   -extern struct gfs2_eattr_operations gfs2_security_eaops;
27   -
28 26 extern struct gfs2_eattr_operations *gfs2_ea_ops[];
29 27  
30 28 #endif /* __EAOPS_DOT_H__ */
... ... @@ -1401,7 +1401,7 @@
1401 1401 gfs2_trans_add_rg(rgd);
1402 1402 }
1403 1403  
1404   -void gfs2_free_uninit_di(struct gfs2_rgrpd *rgd, uint64_t blkno)
  1404 +static void gfs2_free_uninit_di(struct gfs2_rgrpd *rgd, uint64_t blkno)
1405 1405 {
1406 1406 struct gfs2_sbd *sdp = rgd->rd_sbd;
1407 1407 struct gfs2_rgrpd *tmp_rgd;
... ... @@ -43,7 +43,6 @@
43 43  
44 44 void gfs2_free_data(struct gfs2_inode *ip, uint64_t bstart, uint32_t blen);
45 45 void gfs2_free_meta(struct gfs2_inode *ip, uint64_t bstart, uint32_t blen);
46   -void gfs2_free_uninit_di(struct gfs2_rgrpd *rgd, uint64_t blkno);
47 46 void gfs2_free_di(struct gfs2_rgrpd *rgd, struct gfs2_inode *ip);
48 47 void gfs2_unlink_di(struct inode *inode);
49 48