orangefs: clean up oversize xattr validation
authorMartin Brandenburg <martin@omnibond.com>
Tue, 25 Apr 2017 19:37:57 +0000 (15:37 -0400)
committerMike Marshall <hubcap@omnibond.com>
Wed, 26 Apr 2017 18:33:00 +0000 (14:33 -0400)
commite675c5ec51fe2554719a7b6bcdbef0a770f2c19b
treee84d0cc308f94b5e6d3b338004d22e5b960443cd
parenta956af337b9ff25822d9ce1a59c6ed0c09fc14b9
orangefs: clean up oversize xattr validation

Also don't check flags as this has been validated by the VFS already.

Fix an off-by-one error in the max size checking.

Stop logging just because userspace wants to write attributes which do
not fit.

This and the previous commit fix xfstests generic/020.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/xattr.c