aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glops.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-11-01 12:22:46 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-11-30 10:34:14 -0500
commitb60623c238b6a819bd04090139704e2cb57a751f (patch)
treefcecc0599003db66d937138be94bef4b4372f15b /fs/gfs2/glops.c
parente7f14f4d094ea1a9ce1953375f5bc1500c760c79 (diff)
[GFS2] Shrink gfs2_inode (3) - di_mode
This removes the duplicate di_mode field in favour of using the inode->i_mode field. This saves 4 bytes. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glops.c')
-rw-r--r--fs/gfs2/glops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c
index 5406b193227c..aad45b7a927d 100644
--- a/fs/gfs2/glops.c
+++ b/fs/gfs2/glops.c
@@ -92,7 +92,7 @@ static void gfs2_pte_inval(struct gfs2_glock *gl)
92 92
93 ip = gl->gl_object; 93 ip = gl->gl_object;
94 inode = &ip->i_inode; 94 inode = &ip->i_inode;
95 if (!ip || !S_ISREG(ip->i_di.di_mode)) 95 if (!ip || !S_ISREG(inode->i_mode))
96 return; 96 return;
97 97
98 if (!test_bit(GIF_PAGED, &ip->i_flags)) 98 if (!test_bit(GIF_PAGED, &ip->i_flags))
@@ -119,7 +119,7 @@ static void gfs2_page_inval(struct gfs2_glock *gl)
119 119
120 ip = gl->gl_object; 120 ip = gl->gl_object;
121 inode = &ip->i_inode; 121 inode = &ip->i_inode;
122 if (!ip || !S_ISREG(ip->i_di.di_mode)) 122 if (!ip || !S_ISREG(inode->i_mode))
123 return; 123 return;
124 124
125 truncate_inode_pages(inode->i_mapping, 0); 125 truncate_inode_pages(inode->i_mapping, 0);
@@ -142,7 +142,7 @@ static void gfs2_page_wait(struct gfs2_glock *gl)
142 struct address_space *mapping = inode->i_mapping; 142 struct address_space *mapping = inode->i_mapping;
143 int error; 143 int error;
144 144
145 if (!S_ISREG(ip->i_di.di_mode)) 145 if (!S_ISREG(inode->i_mode))
146 return; 146 return;
147 147
148 error = filemap_fdatawait(mapping); 148 error = filemap_fdatawait(mapping);
@@ -164,7 +164,7 @@ static void gfs2_page_writeback(struct gfs2_glock *gl)
164 struct inode *inode = &ip->i_inode; 164 struct inode *inode = &ip->i_inode;
165 struct address_space *mapping = inode->i_mapping; 165 struct address_space *mapping = inode->i_mapping;
166 166
167 if (!S_ISREG(ip->i_di.di_mode)) 167 if (!S_ISREG(inode->i_mode))
168 return; 168 return;
169 169
170 filemap_fdatawrite(mapping); 170 filemap_fdatawrite(mapping);