diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-01-30 13:34:10 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-01-30 13:34:10 -0500 |
commit | f42faf4fa4eaf7e108dd60f3f2ca5c6e9b45352c (patch) | |
tree | 23bf95db3b941a4b14f8b90f98a8aaa663ed6c81 /fs/gfs2/ops_super.c | |
parent | fd2ee6bb1ef02dfe1f1e1f5b44322e0854596e9a (diff) |
[GFS2] Add gfs2_internal_read()
Add the new external read function. Its temporarily in jdata.c
even though the protoype is in ops_file.h - this will change
shortly. The current implementation will change to a page cache
one when that happens.
In order to effect the above changes, the various internal inodes
now have Linux inodes attached to them. We keep the references to
the Linux inodes, rather than the gfs2_inodes in the super block.
In order to get everything to work correctly I've had to reorder
the init sequence on mount (which I should probably have done
earlier when .gfs2_admin was made visible).
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_super.c')
-rw-r--r-- | fs/gfs2/ops_super.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/gfs2/ops_super.c b/fs/gfs2/ops_super.c index ca6a4d81bc26..e06ef8dbd4d3 100644 --- a/fs/gfs2/ops_super.c +++ b/fs/gfs2/ops_super.c | |||
@@ -97,13 +97,13 @@ static void gfs2_put_super(struct super_block *sb) | |||
97 | 97 | ||
98 | /* Release stuff */ | 98 | /* Release stuff */ |
99 | 99 | ||
100 | gfs2_inode_put(sdp->sd_master_dir); | 100 | iput(sdp->sd_master_dir); |
101 | gfs2_inode_put(sdp->sd_jindex); | 101 | iput(sdp->sd_jindex); |
102 | gfs2_inode_put(sdp->sd_inum_inode); | 102 | iput(sdp->sd_inum_inode); |
103 | gfs2_inode_put(sdp->sd_statfs_inode); | 103 | iput(sdp->sd_statfs_inode); |
104 | gfs2_inode_put(sdp->sd_rindex); | 104 | iput(sdp->sd_rindex); |
105 | gfs2_inode_put(sdp->sd_quota_inode); | 105 | iput(sdp->sd_quota_inode); |
106 | gfs2_inode_put(sdp->sd_root_dir); | 106 | iput(sdp->sd_root_dir); |
107 | 107 | ||
108 | gfs2_glock_put(sdp->sd_rename_gl); | 108 | gfs2_glock_put(sdp->sd_rename_gl); |
109 | gfs2_glock_put(sdp->sd_trans_gl); | 109 | gfs2_glock_put(sdp->sd_trans_gl); |
@@ -115,10 +115,10 @@ static void gfs2_put_super(struct super_block *sb) | |||
115 | gfs2_glock_dq_uninit(&sdp->sd_sc_gh); | 115 | gfs2_glock_dq_uninit(&sdp->sd_sc_gh); |
116 | gfs2_glock_dq_uninit(&sdp->sd_ut_gh); | 116 | gfs2_glock_dq_uninit(&sdp->sd_ut_gh); |
117 | gfs2_glock_dq_uninit(&sdp->sd_qc_gh); | 117 | gfs2_glock_dq_uninit(&sdp->sd_qc_gh); |
118 | gfs2_inode_put(sdp->sd_ir_inode); | 118 | iput(sdp->sd_ir_inode); |
119 | gfs2_inode_put(sdp->sd_sc_inode); | 119 | iput(sdp->sd_sc_inode); |
120 | gfs2_inode_put(sdp->sd_ut_inode); | 120 | iput(sdp->sd_ut_inode); |
121 | gfs2_inode_put(sdp->sd_qc_inode); | 121 | iput(sdp->sd_qc_inode); |
122 | } | 122 | } |
123 | 123 | ||
124 | gfs2_glock_dq_uninit(&sdp->sd_live_gh); | 124 | gfs2_glock_dq_uninit(&sdp->sd_live_gh); |