aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorAndi Kleen <[email protected]>2009-09-18 13:05:48 -0700
committerAl Viro <[email protected]>2009-09-24 07:47:27 -0400
commitce06e0b21d6732a2bab10a585a3ec6909499be28 (patch)
tree5d796827ad968bf305c54a2dd7d6453a24e15344 /lib/cpu-notifier-error-inject.c
parentb12536c27043f1c21195e587eb59950428326e22 (diff)
vfs: optimize touch_time() too
Do a similar optimization as earlier for touch_atime. Getting the lock in mnt_get_write is relatively costly, so try all avenues to avoid it first. This patch is careful to still only update inode fields inside the lock region. This didn't show up in benchmarks, but it's easy enough to do. [[email protected]: fix typo in comment] [[email protected]: fix inverted test of mnt_want_write_file()] Signed-off-by: Andi Kleen <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Valerie Aurora <[email protected]> Cc: Al Viro <[email protected]> Cc: Dave Hansen <[email protected]> Signed-off-by: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions