diff options
author | Tao Ma <boyu.mt@taobao.com> | 2012-12-10 14:04:52 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-12-10 14:04:52 -0500 |
commit | 46c7f254543dedcf134ad05091ed2b935a9a597d (patch) | |
tree | dbcb8b71bfe5aebef35964a04f086e2d4eee7ad7 /fs/ext4/xattr.h | |
parent | 67cf5b09a46f72e048501b84996f2f77bc42e947 (diff) |
ext4: add read support for inline data
Let readpage and readpages handle the case when we want to read an
inlined file.
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/xattr.h')
-rw-r--r-- | fs/ext4/xattr.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ext4/xattr.h b/fs/ext4/xattr.h index 7ae0d05156e3..646c9b9be8ed 100644 --- a/fs/ext4/xattr.h +++ b/fs/ext4/xattr.h | |||
@@ -139,6 +139,8 @@ extern int ext4_prepare_inline_data(handle_t *handle, struct inode *inode, | |||
139 | extern int ext4_init_inline_data(handle_t *handle, struct inode *inode, | 139 | extern int ext4_init_inline_data(handle_t *handle, struct inode *inode, |
140 | unsigned int len); | 140 | unsigned int len); |
141 | extern int ext4_destroy_inline_data(handle_t *handle, struct inode *inode); | 141 | extern int ext4_destroy_inline_data(handle_t *handle, struct inode *inode); |
142 | |||
143 | extern int ext4_readpage_inline(struct inode *inode, struct page *page); | ||
142 | # else /* CONFIG_EXT4_FS_XATTR */ | 144 | # else /* CONFIG_EXT4_FS_XATTR */ |
143 | 145 | ||
144 | static inline int | 146 | static inline int |
@@ -255,6 +257,11 @@ static inline int ext4_destroy_inline_data(handle_t *handle, | |||
255 | { | 257 | { |
256 | return 0; | 258 | return 0; |
257 | } | 259 | } |
260 | |||
261 | static inline int ext4_readpage_inline(struct inode *inode, struct page *page) | ||
262 | { | ||
263 | return 0; | ||
264 | } | ||
258 | # endif /* CONFIG_EXT4_FS_XATTR */ | 265 | # endif /* CONFIG_EXT4_FS_XATTR */ |
259 | 266 | ||
260 | #ifdef CONFIG_EXT4_FS_SECURITY | 267 | #ifdef CONFIG_EXT4_FS_SECURITY |