diff options
author | Jan Kara <jack@suse.cz> | 2014-11-25 11:49:25 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-11-25 11:49:25 -0500 |
commit | b0dea4c1651f3cdb6d17604fa473e72cb74cdc6b (patch) | |
tree | 2d95931301e7d82cc086881dfb08c636a3f9c314 /fs/ext4/super.c | |
parent | edaa53cac8fd4b96ed4b8f96c4933158ff2dd337 (diff) |
ext4: move handling of list of shrinkable inodes into extent status code
Currently callers adding extents to extent status tree were responsible
for adding the inode to the list of inodes with freeable extents. This
is error prone and puts list handling in unnecessarily many places.
Just add inode to the list automatically when the first non-delay extent
is added to the tree and remove inode from the list when the last
non-delay extent is removed.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 32df08e99ca9..e2a17f8b7adc 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -962,7 +962,6 @@ void ext4_clear_inode(struct inode *inode) | |||
962 | dquot_drop(inode); | 962 | dquot_drop(inode); |
963 | ext4_discard_preallocations(inode); | 963 | ext4_discard_preallocations(inode); |
964 | ext4_es_remove_extent(inode, 0, EXT_MAX_BLOCKS); | 964 | ext4_es_remove_extent(inode, 0, EXT_MAX_BLOCKS); |
965 | ext4_es_list_del(inode); | ||
966 | if (EXT4_I(inode)->jinode) { | 965 | if (EXT4_I(inode)->jinode) { |
967 | jbd2_journal_release_jbd_inode(EXT4_JOURNAL(inode), | 966 | jbd2_journal_release_jbd_inode(EXT4_JOURNAL(inode), |
968 | EXT4_I(inode)->jinode); | 967 | EXT4_I(inode)->jinode); |