diff options
author | Steven Whitehouse <steve@chygwyn.com> | 2006-01-18 05:57:10 -0500 |
---|---|---|
committer | Steven Whitehouse <steve@chygwyn.com> | 2006-01-18 05:57:10 -0500 |
commit | b96ca4fa4e3b510d528a093a5bac0befbc2ba46d (patch) | |
tree | e4ac82f1d0472d46c8ac30d351b044f1fb3f34d2 /fs/gfs2/ondisk.c | |
parent | 3bd7662c4de28522d4709ab5a56033e3c33e1d4a (diff) |
[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) | |||
77 | pv(no, no_addr, "%llu"); | 77 | pv(no, no_addr, "%llu"); |
78 | } | 78 | } |
79 | 79 | ||
80 | void gfs2_meta_header_in(struct gfs2_meta_header *mh, char *buf) | 80 | static void gfs2_meta_header_in(struct gfs2_meta_header *mh, char *buf) |
81 | { | 81 | { |
82 | struct gfs2_meta_header *str = (struct gfs2_meta_header *)buf; | 82 | struct gfs2_meta_header *str = (struct gfs2_meta_header *)buf; |
83 | 83 | ||
@@ -86,7 +86,7 @@ void gfs2_meta_header_in(struct gfs2_meta_header *mh, char *buf) | |||
86 | mh->mh_format = be16_to_cpu(str->mh_format); | 86 | mh->mh_format = be16_to_cpu(str->mh_format); |
87 | } | 87 | } |
88 | 88 | ||
89 | void gfs2_meta_header_out(struct gfs2_meta_header *mh, char *buf) | 89 | static void gfs2_meta_header_out(struct gfs2_meta_header *mh, char *buf) |
90 | { | 90 | { |
91 | struct gfs2_meta_header *str = (struct gfs2_meta_header *)buf; | 91 | struct gfs2_meta_header *str = (struct gfs2_meta_header *)buf; |
92 | 92 | ||