Whamcloud - gitweb
LU-5777 quota: reserve enough credits for setattr 61/12361/3
authorNiu Yawei <yawei.niu@intel.com>
Tue, 21 Oct 2014 11:07:30 +0000 (07:07 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 29 Oct 2014 14:42:11 +0000 (14:42 +0000)
commite0d08c0642fd65b6ec1f90eaa7da7430e36f5f63
treeda66c65caf9ae98efa9cc9e5512a82340deb9b33
parent72ae278ed2af481d35e82586c9aa13286b6e5335
LU-5777 quota: reserve enough credits for setattr

On chown/chgrp operation, the file to be changed could be the
last file of owner/group, and the user/group ID entry could be
removed from the quota file in this setattr operation. We'd
reserve enough journal credits for such case.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: Ida22092739a6380cca0d6eccc45e1f06f5e82adb
Reviewed-on: http://review.whamcloud.com/12361
Tested-by: Jenkins
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_quota.c