Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344898
b: refs/heads/master
c: 187fd03
h: refs/heads/master
v: v3
  • Loading branch information
Zhi Yong Wu authored and Theodore Ts'o committed Dec 10, 2012
1 parent f8f9a78 commit e377231
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6b280c913ee02a1a41b020a74c41584f2fca582a
refs/heads/master: 187fd030d801b02b0daeb010dbf7c0113be3156d
2 changes: 0 additions & 2 deletions trunk/fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -2194,15 +2194,13 @@ ext4_ext_in_cache(struct inode *inode, ext4_lblk_t block,
struct ext4_extent *ex)
{
struct ext4_ext_cache *cex;
struct ext4_sb_info *sbi;
int ret = 0;

/*
* We borrow i_block_reservation_lock to protect i_cached_extent
*/
spin_lock(&EXT4_I(inode)->i_block_reservation_lock);
cex = &EXT4_I(inode)->i_cached_extent;
sbi = EXT4_SB(inode->i_sb);

/* has cache valid data? */
if (cex->ec_len == 0)
Expand Down

0 comments on commit e377231

Please sign in to comment.