summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-03-27 10:34:46 -0400
committerBen Myers <bpm@sgi.com>2012-05-14 16:20:15 -0500
commitb4d05e3019692fc5a8c573fbce60de2d48c5b7a1 (patch)
treedf2c46061cc44055771475056962bc4c45a7b758 /include
parent8a00ebe4cfc90eda9ecb575ba97e22021cd8cf70 (diff)
downloadlinux-stable-b4d05e3019692fc5a8c573fbce60de2d48c5b7a1.tar.gz
linux-stable-b4d05e3019692fc5a8c573fbce60de2d48c5b7a1.tar.bz2
linux-stable-b4d05e3019692fc5a8c573fbce60de2d48c5b7a1.zip
xfs: avoid taking the ilock unnessecarily in xfs_qm_dqattach
Check if we actually need to attach a dquot before taking the ilock in xfs_qm_dqattach. This avoid superflous lock roundtrips for the common cases of quota support compiled in but not activated on a filesystem and an inode that already has the dquots attached. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions