From: Kaixu Xia <kaixuxia@xxxxxxxxxxx> Hi all, This patchset include random fixes and code cleanups for disk quota. In order to make it easier to track, I bundle them up and put all the scattered patches into a single patchset. Changes for v6: -fix the long line warnings in commit messages and some formatting issues. Changes for v5: -drop the check for delta != 0 in xfs_trans_dqresv(). Changes for v4: -delete duplicated tp->t_dqinfo null check and allocation in one patch. -drop the first two patches that have been applied. Changes for v3: -add a separate patch to delete duplicated tp->t_dqinfo null check and allocation. Changes for v2: -add the ASSERT for the arguments O_{u,g,p}dqpp. -fix the strange indent. -remove the XFS_TRANS_DQ_DIRTY flag. -add more commit log description for delta judgement. Kaixu Xia (3): xfs: delete duplicated tp->t_dqinfo null check and allocation xfs: check tp->t_dqinfo value instead of the XFS_TRANS_DQ_DIRTY flag xfs: directly return if the delta equal to zero fs/xfs/libxfs/xfs_shared.h | 1 - fs/xfs/xfs_inode.c | 8 +------ fs/xfs/xfs_trans_dquot.c | 43 ++++++++++---------------------------- 3 files changed, 12 insertions(+), 40 deletions(-) -- 2.20.0