From: Christoph Hellwig Date: Mon, 6 Sep 2010 01:44:45 +0000 (+0000) Subject: xfs: stop using xfs_qm_dqtobp in xfs_qm_dqflush X-Git-Tag: v2.6.37-rc1~162^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acecf1b5d8a846bf818bf74df454330f0b444b0a;p=pandora-kernel.git xfs: stop using xfs_qm_dqtobp in xfs_qm_dqflush 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: Christoph Hellwig Signed-off-by: Alex Elder --- Reading git-diff-tree failed