diff options
author | Theodore Ts'o <tytso@mit.edu> | 2014-09-01 14:37:09 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-09-01 14:37:09 -0400 |
commit | dfe5080939ea4686b3414b5d970a9b26733c57a4 (patch) | |
tree | 3a97b3bef0d585e4fdb445b040284e90cccf654d /fs/ext4/ext4.h | |
parent | 4f224b8b7be6856a3ceaf7f9d9c1860d467174ae (diff) |
ext4: drop EXT4_EX_NOFREE_ON_ERR from rest of extents handling code
Drop EXT4_EX_NOFREE_ON_ERR from ext4_ext_create_new_leaf(),
ext4_split_extent(), ext4_convert_unwritten_extents_endio().
This requires fixing all of their callers to potentially
ext4_ext_find_extent() to free the struct ext4_ext_path object in case
of an error, and there are interlocking dependencies all the way up to
ext4_ext_map_blocks(), ext4_swap_extents(), and
ext4_ext_remove_space().
Once this is done, we can drop the EXT4_EX_NOFREE_ON_ERR flag since it
is no longer necessary.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 696e51ae02fa..4a5a6b95b2fa 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -582,7 +582,6 @@ enum { | |||
582 | */ | 582 | */ |
583 | #define EXT4_EX_NOCACHE 0x0800 | 583 | #define EXT4_EX_NOCACHE 0x0800 |
584 | #define EXT4_EX_FORCE_CACHE 0x1000 | 584 | #define EXT4_EX_FORCE_CACHE 0x1000 |
585 | #define EXT4_EX_NOFREE_ON_ERR 0x2000 | ||
586 | 585 | ||
587 | /* | 586 | /* |
588 | * Flags used by ext4_free_blocks | 587 | * Flags used by ext4_free_blocks |
@@ -2731,7 +2730,7 @@ extern int ext4_can_extents_be_merged(struct inode *inode, | |||
2731 | struct ext4_extent *ex1, | 2730 | struct ext4_extent *ex1, |
2732 | struct ext4_extent *ex2); | 2731 | struct ext4_extent *ex2); |
2733 | extern int ext4_ext_insert_extent(handle_t *, struct inode *, | 2732 | extern int ext4_ext_insert_extent(handle_t *, struct inode *, |
2734 | struct ext4_ext_path *, | 2733 | struct ext4_ext_path **, |
2735 | struct ext4_extent *, int); | 2734 | struct ext4_extent *, int); |
2736 | extern struct ext4_ext_path *ext4_ext_find_extent(struct inode *, ext4_lblk_t, | 2735 | extern struct ext4_ext_path *ext4_ext_find_extent(struct inode *, ext4_lblk_t, |
2737 | struct ext4_ext_path **, | 2736 | struct ext4_ext_path **, |