• K
    make USE_NSEC work as expected · fba2f38a
    Kjetil Barvik 提交于
    Since the filesystem ext4 is now defined as stable in Linux v2.6.28,
    and ext4 supports nanonsecond resolution timestamps natively, it is
    time to make USE_NSEC work as expected.
    
    This will make racy git situations less likely to happen.  For 'git
    checkout' this means it will be less likely that we have to open, read
    the contents of the file into RAM, and check if file is really
    modified or not.  The result sould be a litle less used CPU time, less
    pagefaults and a litle faster program, at least for 'git checkout'.
    
    Since the number of possible racy git situations would increase when
    disks gets faster, this patch would be more and more helpfull as times
    go by.  For a fast Solid State Disk, this patch should be helpfull.
    
    Note that, when file operations starts to take less than 1 nanosecond,
    one would again start to get more racy git situations.
    
    For more info on racy git, see Documentation/technical/racy-git.txt
    For more info on ext4, see http://kernelnewbies.org/Ext4Signed-off-by: NKjetil Barvik <barvik@broadpark.no>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    fba2f38a
cache.h 33.2 KB