]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: move handling of list of shrinkable inodes into extent status code
authorJan Kara <jack@suse.cz>
Tue, 25 Nov 2014 16:49:25 +0000 (11:49 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 25 Nov 2014 16:49:25 +0000 (11:49 -0500)
commit2a7bffa178b8c994352ed66816a63bd9c4fa5d8f
tree2d95931301e7d82cc086881dfb08c636a3f9c314
parent8314fde209b52ddc09e8e07b2d8039af29c3361c
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>
fs/ext4/extents.c
fs/ext4/extents_status.c
fs/ext4/extents_status.h
fs/ext4/inode.c
fs/ext4/ioctl.c
fs/ext4/super.c