aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 985ed023a750..0811d6509fce 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -258,9 +258,9 @@ static int check_extent_cache(struct inode *inode, pgoff_t pgofs,
258 if (is_inode_flag_set(fi, FI_NO_EXTENT)) 258 if (is_inode_flag_set(fi, FI_NO_EXTENT))
259 return 0; 259 return 0;
260 260
261 read_lock(&fi->ext.ext_lock); 261 read_lock(&fi->ext_lock);
262 if (fi->ext.len == 0) { 262 if (fi->ext.len == 0) {
263 read_unlock(&fi->ext.ext_lock); 263 read_unlock(&fi->ext_lock);
264 return 0; 264 return 0;
265 } 265 }
266 266
@@ -284,10 +284,10 @@ static int check_extent_cache(struct inode *inode, pgoff_t pgofs,
284 bh_result->b_size = UINT_MAX; 284 bh_result->b_size = UINT_MAX;
285 285
286 stat_inc_read_hit(inode->i_sb); 286 stat_inc_read_hit(inode->i_sb);
287 read_unlock(&fi->ext.ext_lock); 287 read_unlock(&fi->ext_lock);
288 return 1; 288 return 1;
289 } 289 }
290 read_unlock(&fi->ext.ext_lock); 290 read_unlock(&fi->ext_lock);
291 return 0; 291 return 0;
292} 292}
293 293
@@ -309,7 +309,7 @@ void update_extent_cache(struct dnode_of_data *dn)
309 fofs = start_bidx_of_node(ofs_of_node(dn->node_page), fi) + 309 fofs = start_bidx_of_node(ofs_of_node(dn->node_page), fi) +
310 dn->ofs_in_node; 310 dn->ofs_in_node;
311 311
312 write_lock(&fi->ext.ext_lock); 312 write_lock(&fi->ext_lock);
313 313
314 start_fofs = fi->ext.fofs; 314 start_fofs = fi->ext.fofs;
315 end_fofs = fi->ext.fofs + fi->ext.len - 1; 315 end_fofs = fi->ext.fofs + fi->ext.len - 1;
@@ -366,7 +366,7 @@ void update_extent_cache(struct dnode_of_data *dn)
366 need_update = true; 366 need_update = true;
367 } 367 }
368end_update: 368end_update:
369 write_unlock(&fi->ext.ext_lock); 369 write_unlock(&fi->ext_lock);
370 if (need_update) 370 if (need_update)
371 sync_inode_page(dn); 371 sync_inode_page(dn);
372 return; 372 return;