diff options
Diffstat (limited to 'include/linux/ext3_fs.h')
| -rw-r--r-- | include/linux/ext3_fs.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/linux/ext3_fs.h b/include/linux/ext3_fs.h index e7239f2f97..3ade6a4e3b 100644 --- a/include/linux/ext3_fs.h +++ b/include/linux/ext3_fs.h | |||
| @@ -36,7 +36,8 @@ struct statfs; | |||
| 36 | * Define EXT3_RESERVATION to reserve data blocks for expanding files | 36 | * Define EXT3_RESERVATION to reserve data blocks for expanding files |
| 37 | */ | 37 | */ |
| 38 | #define EXT3_DEFAULT_RESERVE_BLOCKS 8 | 38 | #define EXT3_DEFAULT_RESERVE_BLOCKS 8 |
| 39 | #define EXT3_MAX_RESERVE_BLOCKS 1024 | 39 | /*max window size: 1024(direct blocks) + 3([t,d]indirect blocks) */ |
| 40 | #define EXT3_MAX_RESERVE_BLOCKS 1027 | ||
| 40 | #define EXT3_RESERVE_WINDOW_NOT_ALLOCATED 0 | 41 | #define EXT3_RESERVE_WINDOW_NOT_ALLOCATED 0 |
| 41 | /* | 42 | /* |
| 42 | * Always enable hashed directories | 43 | * Always enable hashed directories |
| @@ -732,6 +733,8 @@ struct dir_private_info { | |||
| 732 | extern int ext3_bg_has_super(struct super_block *sb, int group); | 733 | extern int ext3_bg_has_super(struct super_block *sb, int group); |
| 733 | extern unsigned long ext3_bg_num_gdb(struct super_block *sb, int group); | 734 | extern unsigned long ext3_bg_num_gdb(struct super_block *sb, int group); |
| 734 | extern int ext3_new_block (handle_t *, struct inode *, unsigned long, int *); | 735 | extern int ext3_new_block (handle_t *, struct inode *, unsigned long, int *); |
| 736 | extern int ext3_new_blocks (handle_t *, struct inode *, unsigned long, | ||
| 737 | unsigned long *, int *); | ||
| 735 | extern void ext3_free_blocks (handle_t *, struct inode *, unsigned long, | 738 | extern void ext3_free_blocks (handle_t *, struct inode *, unsigned long, |
| 736 | unsigned long); | 739 | unsigned long); |
| 737 | extern void ext3_free_blocks_sb (handle_t *, struct super_block *, | 740 | extern void ext3_free_blocks_sb (handle_t *, struct super_block *, |
| @@ -775,9 +778,9 @@ extern unsigned long ext3_count_free (struct buffer_head *, unsigned); | |||
| 775 | int ext3_forget(handle_t *, int, struct inode *, struct buffer_head *, int); | 778 | int ext3_forget(handle_t *, int, struct inode *, struct buffer_head *, int); |
| 776 | struct buffer_head * ext3_getblk (handle_t *, struct inode *, long, int, int *); | 779 | struct buffer_head * ext3_getblk (handle_t *, struct inode *, long, int, int *); |
| 777 | struct buffer_head * ext3_bread (handle_t *, struct inode *, int, int, int *); | 780 | struct buffer_head * ext3_bread (handle_t *, struct inode *, int, int, int *); |
| 778 | int ext3_get_block_handle(handle_t *handle, struct inode *inode, | 781 | int ext3_get_blocks_handle(handle_t *handle, struct inode *inode, |
| 779 | sector_t iblock, struct buffer_head *bh_result, int create, | 782 | sector_t iblock, unsigned long maxblocks, struct buffer_head *bh_result, |
| 780 | int extend_disksize); | 783 | int create, int extend_disksize); |
| 781 | 784 | ||
| 782 | extern void ext3_read_inode (struct inode *); | 785 | extern void ext3_read_inode (struct inode *); |
| 783 | extern int ext3_write_inode (struct inode *, int); | 786 | extern int ext3_write_inode (struct inode *, int); |
| @@ -830,11 +833,11 @@ do { \ | |||
| 830 | */ | 833 | */ |
| 831 | 834 | ||
| 832 | /* dir.c */ | 835 | /* dir.c */ |
| 833 | extern struct file_operations ext3_dir_operations; | 836 | extern const struct file_operations ext3_dir_operations; |
| 834 | 837 | ||
| 835 | /* file.c */ | 838 | /* file.c */ |
| 836 | extern struct inode_operations ext3_file_inode_operations; | 839 | extern struct inode_operations ext3_file_inode_operations; |
| 837 | extern struct file_operations ext3_file_operations; | 840 | extern const struct file_operations ext3_file_operations; |
| 838 | 841 | ||
| 839 | /* namei.c */ | 842 | /* namei.c */ |
| 840 | extern struct inode_operations ext3_dir_inode_operations; | 843 | extern struct inode_operations ext3_dir_inode_operations; |
