aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glops.c
diff options
context:
space:
mode:
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);