diff options
author | Steven Whitehouse <steve@chygwyn.com> | 2006-01-18 11:57:10 +0100 |
---|---|---|
committer | Steven Whitehouse <steve@chygwyn.com> | 2006-01-18 11:57:10 +0100 |
commit | b96ca4fa4e3b510d528a093a5bac0befbc2ba46d (patch) | |
tree | e4ac82f1d0472d46c8ac30d351b044f1fb3f34d2 /fs/gfs2/ondisk.c | |
parent | [GFS2] Remove unused code from ondisk.c/gfs2_ondisk.h (diff) | |
download | linux-b96ca4fa4e3b510d528a093a5bac0befbc2ba46d.tar.xz linux-b96ca4fa4e3b510d528a093a5bac0befbc2ba46d.zip |
[GFS2] Update init_dinode() to reduce stack usage
We no longer allocate a dinode on the stack in init_dinode()
and we no longer use gfs2_dinode_out (eliminating one copy) and
gfs2_meta_header_in (eliminating another copy). The meta_header_in
fucntion is now no longer referenced from outside gfs2_ondisk.c, so
make it static.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ondisk.c')
-rw-r--r-- | fs/gfs2/ondisk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c index 0d54e082e62b..854b5049b8d5 100644 --- a/fs/gfs2/ondisk.c +++ b/fs/gfs2/ondisk.c @@ -77,7 +77,7 @@ void gfs2_inum_print(struct gfs2_inum *no) pv(no, no_addr, "%llu"); } -void gfs2_meta_header_in(struct gfs2_meta_header *mh, char *buf) +static void gfs2_meta_header_in(struct gfs2_meta_header *mh, char *buf) { struct gfs2_meta_header *str = (struct gfs2_meta_header *)buf; @@ -86,7 +86,7 @@ void gfs2_meta_header_in(struct gfs2_meta_header *mh, char *buf) mh->mh_format = be16_to_cpu(str->mh_format); } -void gfs2_meta_header_out(struct gfs2_meta_header *mh, char *buf) +static void gfs2_meta_header_out(struct gfs2_meta_header *mh, char *buf) { struct gfs2_meta_header *str = (struct gfs2_meta_header *)buf; |