summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4_extents.h
diff options
context:
space:
mode:
authorZheng Liu <wenqing.lz@taobao.com>2013-02-18 00:31:07 -0500
committerTheodore Ts'o <tytso@mit.edu>2013-02-18 00:31:07 -0500
commit69eb33dc24dc44d1128aa5e82d0976c42b440c1a (patch)
treea20982f1fb23b94fe08e6034faea33ed81e4626f /fs/ext4/ext4_extents.h
parentd100eef2440fea13e4f09e88b1c8bcbca64beb9f (diff)
downloadop-kernel-dev-69eb33dc24dc44d1128aa5e82d0976c42b440c1a.zip
op-kernel-dev-69eb33dc24dc44d1128aa5e82d0976c42b440c1a.tar.gz
ext4: remove single extent cache
Single extent cache could be removed because we have extent status tree as a extent cache, and it would be better. Signed-off-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Cc: Jan kara <jack@suse.cz>
Diffstat (limited to 'fs/ext4/ext4_extents.h')
-rw-r--r--fs/ext4/ext4_extents.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ext4/ext4_extents.h b/fs/ext4/ext4_extents.h
index 487fda1..8643ff5 100644
--- a/fs/ext4/ext4_extents.h
+++ b/fs/ext4/ext4_extents.h
@@ -193,12 +193,6 @@ static inline unsigned short ext_depth(struct inode *inode)
return le16_to_cpu(ext_inode_hdr(inode)->eh_depth);
}
-static inline void
-ext4_ext_invalidate_cache(struct inode *inode)
-{
- EXT4_I(inode)->i_cached_extent.ec_len = 0;
-}
-
static inline void ext4_ext_mark_uninitialized(struct ext4_extent *ext)
{
/* We can not have an uninitialized extent of zero length! */
OpenPOWER on IntegriCloud