summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode_item.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-09-06 03:44:45 +0200
committerAlex Elder <aelder@sgi.com>2010-10-18 22:07:37 +0200
commitacecf1b5d8a846bf818bf74df454330f0b444b0a (patch)
tree9d337467b6882bff99fec04cd30b6cc0a831da5f /fs/xfs/xfs_inode_item.h
parentxfs: simplify xfs_qm_dqusage_adjust (diff)
downloadlinux-acecf1b5d8a846bf818bf74df454330f0b444b0a.tar.xz
linux-acecf1b5d8a846bf818bf74df454330f0b444b0a.zip
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 <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_inode_item.h')
0 files changed, 0 insertions, 0 deletions