diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-03-27 16:34:48 +0200 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-05-14 23:20:18 +0200 |
commit | f38996f5768713fb60e1d2de66c097367d54bb6a (patch) | |
tree | 42135e66d1a3e90aede209d491dec9304e36d703 /fs/xfs/xfs_file.c | |
parent | xfs: reduce ilock hold times in xfs_file_aio_write_checks (diff) | |
download | linux-f38996f5768713fb60e1d2de66c097367d54bb6a.tar.xz linux-f38996f5768713fb60e1d2de66c097367d54bb6a.zip |
xfs: reduce ilock hold times in xfs_setattr_size
We do not need the ilock for most checks done in the beginning of
xfs_setattr_size. Replace the long critical section before starting the
transaction with a smaller one around xfs_zero_eof and an optional one
inside xfs_qm_dqattach that isn't entered unless using quotas. While
this isn't a big optimization for xfs_setattr_size itself it will allow
pushing the ilock into xfs_zero_eof itself later.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_file.c')
0 files changed, 0 insertions, 0 deletions