ext4: factor out loop for freeing inode xattr space
authorJan Kara <jack@suse.cz>
Mon, 29 Aug 2016 19:44:11 +0000 (15:44 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 29 Aug 2016 19:44:11 +0000 (15:44 -0400)
commitdfa2064b222c901b05c19ec5b7f42a25f7bee0e3
treefe588162ed654fbd32187375771f03e78a50f674
parent6e0cd088c01023c02b1e887e02c8b6f3f395344f
ext4: factor out loop for freeing inode xattr space

Move loop to make enough space in the inode from
ext4_expand_extra_isize_ea() into a separate function to make that
function smaller and better readable and also to avoid delaration of
variables inside a loop block.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/xattr.c