Whamcloud - gitweb
LU-6722 ldiskfs: declare credits for quota when destroy inode 34/15334/5
authorFan Yong <fan.yong@intel.com>
Thu, 25 Jun 2015 21:46:59 +0000 (05:46 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 5 Jul 2015 03:12:39 +0000 (03:12 +0000)
commite065d04c3cdcf40ae4d4fd4aee0b2548aca4d045
treec009307a9bc9422846840973446ce3396f9ab909
parent012f9476913dd01916beb642954e38d86661c5c9
LU-6722 ldiskfs: declare credits for quota when destroy inode

When destroy the inode, if it has large EA that occupies another
separated block, then it calls ldiskfs_xattr_delete_inode(). But
such function does not consider the quota modification as to that
before making the group descriptor dirty, the persevered credits
becomes zero, so jbd2_journal_dirty_metadata() failed as "-ENOSPC",
then the subsequent journal abort makes the system as RDONLY.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I0567d6b6d54cd57b25524c3d58190926e3505867
Reviewed-on: http://review.whamcloud.com/15334
Tested-by: Jenkins
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
ldiskfs/kernel_patches/patches/rhel6.3/ext4-back-dquot-to.patch
ldiskfs/kernel_patches/patches/rhel6.3/ext4-large-eas.patch
ldiskfs/kernel_patches/patches/rhel6.4/ext4-back-dquot-to.patch
ldiskfs/kernel_patches/patches/rhel7/ext4-large-eas.patch
ldiskfs/kernel_patches/patches/sles11sp2/ext4-large-eas.patch