summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@users.sf.net>2011-06-27 19:40:50 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-06-27 19:40:50 -0400
commitdae1e52cb1267bf8f52e5e47a80fab566d7e8aa4 (patch)
tree2537e9f8f138e4935f88e605244174c9b2400bf4 /fs/ext4/ext4.h
parent9f125d641beb898f5bf2fe69583192c18043517a (diff)
downloadlinux-dae1e52cb1267bf8f52e5e47a80fab566d7e8aa4.tar.gz
linux-dae1e52cb1267bf8f52e5e47a80fab566d7e8aa4.tar.bz2
linux-dae1e52cb1267bf8f52e5e47a80fab566d7e8aa4.zip
ext4: move ext4_ind_* functions from inode.c to indirect.c
This patch moves functions from inode.c to indirect.c. The moved functions are ext4_ind_* functions and their helpers. Functions called from inode.c are declared extern. Signed-off-by: Amir Goldstein <amir73il@users.sf.net> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 82ba7eb7c4a5..ddaf5043fb38 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1834,6 +1834,15 @@ extern int ext4_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf);
extern qsize_t *ext4_get_reserved_space(struct inode *inode);
extern void ext4_da_update_reserve_space(struct inode *inode,
int used, int quota_claim);
+
+/* indirect.c */
+extern int ext4_ind_map_blocks(handle_t *handle, struct inode *inode,
+ struct ext4_map_blocks *map, int flags);
+extern ssize_t ext4_ind_direct_IO(int rw, struct kiocb *iocb,
+ const struct iovec *iov, loff_t offset,
+ unsigned long nr_segs);
+extern int ext4_ind_calc_metadata_amount(struct inode *inode, sector_t lblock);
+extern int ext4_ind_trans_blocks(struct inode *inode, int nrblocks, int chunk);
extern void ext4_ind_truncate(struct inode *inode);
/* ioctl.c */