ext4: replace bogus assertion in ext4_xattr_shift_entries()
authorJan Kara <jack@suse.cz>
Mon, 29 Aug 2016 19:41:11 +0000 (15:41 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 29 Aug 2016 19:41:11 +0000 (15:41 -0400)
commit94405713889d4a9d341b4ad92956e4e2ec8ec2c2
tree89ff425378c08511273b3e614f41dd14d71ddac3
parent1cba423707b47886391c7fcb3614fc67394be06e
ext4: replace bogus assertion in ext4_xattr_shift_entries()

We were checking whether computed offsets do not exceed end of block in
ext4_xattr_shift_entries(). However this does not make sense since we
always only decrease offsets. So replace that assertion with a check
whether we really decrease xattrs value offsets.

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