Whamcloud - gitweb
LU-3671 mdd: sync perm for dir and perm reduction only 57/7257/5
authorLai Siyao <lai.siyao@intel.com>
Wed, 7 Aug 2013 10:42:31 +0000 (18:42 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 27 Aug 2013 02:13:43 +0000 (02:13 +0000)
commitc0e6982b57319e5044cf12bee509c0c571a17cc5
treed9f5c9f6f1284c4c5e32c86fdf0c9f5ccb002b18
parent7eb9b5de99d4205fc4e83549728df8a53176ca70
LU-3671 mdd: sync perm for dir and perm reduction only

To mitigate performance impact for sync permission, do it for dir
and when permission is reduced only.

Remove extra sync permission check in mdd_xattr_set() because ACL
change is all handled in mdd_acl_set().

Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Change-Id: I64fc720a380aafdaf858d83fbb85f29a1063e07f
Reviewed-on: http://review.whamcloud.com/7257
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
lustre/mdd/mdd_object.c
lustre/mdd/mdd_permission.c