• Christoph Hellwig's avatar
    xfs: stop using xfs_qm_dqtobp in xfs_qm_dqflush · acecf1b5
    Christoph Hellwig authored
    In xfs_qm_dqflush we know that q_blkno must be initialized already from a
    previous xfs_qm_dqread.  So instead of calling xfs_qm_dqtobp we can
    simply read the quota buffer directly.  This also saves us from a duplicate
    xfs_qm_dqcheck call check and allows xfs_qm_dqtobp to be simplified now
    that it is always called for a newly initialized inode.  In addition to
    that properly unwind all locks in xfs_qm_dqflush when xfs_qm_dqcheck
    fails.
    
    This mirrors a similar cleanup in the inode lookup done earlier.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarAlex Elder <aelder@sgi.com>
    acecf1b5
xfs_dquot.c 37.9 KB