diff options
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 0db830d541ec..f9ba51f68777 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -514,6 +514,8 @@ int ext4_map_blocks(handle_t *handle, struct inode *inode, | |||
514 | "logical block %lu\n", inode->i_ino, flags, map->m_len, | 514 | "logical block %lu\n", inode->i_ino, flags, map->m_len, |
515 | (unsigned long) map->m_lblk); | 515 | (unsigned long) map->m_lblk); |
516 | 516 | ||
517 | ext4_es_lru_add(inode); | ||
518 | |||
517 | /* Lookup extent status tree firstly */ | 519 | /* Lookup extent status tree firstly */ |
518 | if (ext4_es_lookup_extent(inode, map->m_lblk, &es)) { | 520 | if (ext4_es_lookup_extent(inode, map->m_lblk, &es)) { |
519 | if (ext4_es_is_written(&es) || ext4_es_is_unwritten(&es)) { | 521 | if (ext4_es_is_written(&es) || ext4_es_is_unwritten(&es)) { |
@@ -1526,6 +1528,8 @@ static int ext4_da_map_blocks(struct inode *inode, sector_t iblock, | |||
1526 | "logical block %lu\n", inode->i_ino, map->m_len, | 1528 | "logical block %lu\n", inode->i_ino, map->m_len, |
1527 | (unsigned long) map->m_lblk); | 1529 | (unsigned long) map->m_lblk); |
1528 | 1530 | ||
1531 | ext4_es_lru_add(inode); | ||
1532 | |||
1529 | /* Lookup extent status tree firstly */ | 1533 | /* Lookup extent status tree firstly */ |
1530 | if (ext4_es_lookup_extent(inode, iblock, &es)) { | 1534 | if (ext4_es_lookup_extent(inode, iblock, &es)) { |
1531 | 1535 | ||