summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/ondisk.c
diff options
context:
space:
mode:
authorSteven Whitehouse <steve@chygwyn.com>2006-01-18 10:57:10 +0000
committerSteven Whitehouse <steve@chygwyn.com>2006-01-18 10:57:10 +0000
commitb96ca4fa4e3b510d528a093a5bac0befbc2ba46d (patch)
treee4ac82f1d0472d46c8ac30d351b044f1fb3f34d2 /fs/gfs2/ondisk.c
parent3bd7662c4de28522d4709ab5a56033e3c33e1d4a (diff)
downloadop-kernel-dev-b96ca4fa4e3b510d528a093a5bac0befbc2ba46d.zip
op-kernel-dev-b96ca4fa4e3b510d528a093a5bac0befbc2ba46d.tar.gz
[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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c
index 0d54e08..854b504 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;
OpenPOWER on IntegriCloud