lustre/mdc: Check for all attributes validity in revalidate
lustre/mdc: Check for all attributes validity in revalidate

GETATTR needs to return attributes protected by different bits, so
we need to ensure all we have locks with all of those bits, not
just UPDATE bit

Signed-off-by: Alexey Lyashkov <3c9e1f9877bc31a4582ec0f71d72de94c7acb810@xyratex.com>
Signed-off-by: Oleg Drokin <65b2ca07820e940f66d8901813c729ec10a548f5@intel.com>
Reviewed-on: http://review.whamcloud.com/6460
Xyratex-bug-id: MRP-1052
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3240
Reviewed-by: Dmitry Eremin <ea1e3c6fa6979cfec6a3ebd98bd4636046bd897e@intel.com>
Reviewed-by: wangdi <29d80f3910d05a59eb6ad4fdd029ffa04475cdd8@intel.com>
Reviewed-by: Andreas Dilger <fb9bfcd2d82414390637ce05921b7d9f9341a408@intel.com>
Signed-off-by: Greg Kroah-Hartman <4645f7897fd33786a2ee1264d590b3c400559d85@linuxfoundation.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs