summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorTheodore Ts'o2015-04-08 06:00:32 +0200
committerTheodore Ts'o2015-04-08 06:00:32 +0200
commitf64e02fe9bc6a359cab95632b33900094d225ae1 (patch)
treebbaa7c514a5b6d7371760ac3ad367586f4e983f0 /fs/ext4/ext4.h
parentext4: make fsync to sync parent dir in no-journal for real this time (diff)
downloadkernel-qcow2-linux-f64e02fe9bc6a359cab95632b33900094d225ae1.tar.gz
kernel-qcow2-linux-f64e02fe9bc6a359cab95632b33900094d225ae1.tar.xz
kernel-qcow2-linux-f64e02fe9bc6a359cab95632b33900094d225ae1.zip
ext4 crypto: add ext4_mpage_readpages()
This takes code from fs/mpage.c and optimizes it for ext4. Its primary reason is to allow us to more easily add encryption to ext4's read path in an efficient manner. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index f63c3d5805c4..f7f3f5871796 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -2699,6 +2699,10 @@ static inline void ext4_set_de_type(struct super_block *sb,
de->file_type = ext4_type_by_mode[(mode & S_IFMT)>>S_SHIFT];
}
+/* readpages.c */
+extern int ext4_mpage_readpages(struct address_space *mapping,
+ struct list_head *pages, struct page *page,
+ unsigned nr_pages);
/* symlink.c */
extern const struct inode_operations ext4_symlink_inode_operations;