author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sat, 23 Apr 2005 18:09:32 +0000 (11:09 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sat, 23 Apr 2005 18:09:32 +0000 (11:09 -0700) | ||
commit | 144bde78e9ff22d53682ef46b3d9845b83e70f54 | |
tree | 329aca984ad6d06eb6d2dffae3933f00ccb8df5a | tree | snapshot |
parent | a6ef3518f9ac8a1c46a36c8d27173b1f73d839c4 | commit | diff |
Use O_NOATIME when opening the sha1 files.
We really don't care about atime, and it sucks to dirty the
inode cache just for it.
This is more than a one-liner only because we need to be able to
clear the O_NOATIME flag in case some of the objects are owned
by others (in which case open will return EPERM), and because not
everybody has the O_NOATIME flag.
We really don't care about atime, and it sucks to dirty the
inode cache just for it.
This is more than a one-liner only because we need to be able to
clear the O_NOATIME flag in case some of the objects are owned
by others (in which case open will return EPERM), and because not
everybody has the O_NOATIME flag.
sha1_file.c | diff | blob | history |