aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorTao Ma <boyu.mt@taobao.com>2012-12-10 14:05:51 -0500
committerTheodore Ts'o <tytso@mit.edu>2012-12-10 14:05:51 -0500
commitf19d5870cbf72d4cb2a8e1f749dff97af99b071e (patch)
treee919ba96fde504b6d697d1e13abb080d7800f61b /fs/ext4/ext4.h
parent46c7f254543dedcf134ad05091ed2b935a9a597d (diff)
ext4: add normal write support for inline data
For a normal write case (not journalled write, not delayed allocation), we write to the inline if the file is small and convert it to an extent based file when the write is larger than the max inline size. Signed-off-by: Tao Ma <boyu.mt@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index c827e47d556c..9f4efc6c37ba 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -2018,8 +2018,19 @@ struct buffer_head *ext4_getblk(handle_t *, struct inode *,
2018 ext4_lblk_t, int, int *); 2018 ext4_lblk_t, int, int *);
2019struct buffer_head *ext4_bread(handle_t *, struct inode *, 2019struct buffer_head *ext4_bread(handle_t *, struct inode *,
2020 ext4_lblk_t, int, int *); 2020 ext4_lblk_t, int, int *);
2021int ext4_get_block_write(struct inode *inode, sector_t iblock,
2022 struct buffer_head *bh_result, int create);
2021int ext4_get_block(struct inode *inode, sector_t iblock, 2023int ext4_get_block(struct inode *inode, sector_t iblock,
2022 struct buffer_head *bh_result, int create); 2024 struct buffer_head *bh_result, int create);
2025int ext4_walk_page_buffers(handle_t *handle,
2026 struct buffer_head *head,
2027 unsigned from,
2028 unsigned to,
2029 int *partial,
2030 int (*fn)(handle_t *handle,
2031 struct buffer_head *bh));
2032int do_journal_get_write_access(handle_t *handle,
2033 struct buffer_head *bh);
2023 2034
2024extern struct inode *ext4_iget(struct super_block *, unsigned long); 2035extern struct inode *ext4_iget(struct super_block *, unsigned long);
2025extern int ext4_write_inode(struct inode *, struct writeback_control *); 2036extern int ext4_write_inode(struct inode *, struct writeback_control *);