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, extern int ext4_init_inline_data(handle_t *handle, struct inode *inode, unsigned int len); extern int ext4_destroy_inline_data(handle_t *handle, struct inode *inode); + +extern int ext4_readpage_inline(struct inode *inode, struct page *page); # else /* CONFIG_EXT4_FS_XATTR */ static inline int @@ -255,6 +257,11 @@ static inline int ext4_destroy_inline_data(handle_t *handle, { return 0; } + +static inline int ext4_readpage_inline(struct inode *inode, struct page *page) +{ + return 0; +} # endif /* CONFIG_EXT4_FS_XATTR */ #ifdef CONFIG_EXT4_FS_SECURITY |