Skip to content
  • Amir Goldstein's avatar
    nfsd: store stat times in fill_pre_wcc() instead of inode times · 39ca1bf6
    Amir Goldstein authored
    
    
    The time values in stat and inode may differ for overlayfs and stat time
    values are the correct ones to use. This is also consistent with the fact
    that fill_post_wcc() also stores stat time values.
    
    This means introducing a stat call that could fail, where previously we
    were just copying values out of the inode.  To be conservative about
    changing behavior, we fall back to copying values out of the inode in
    the error case.  It might be better just to clear fh_pre_saved (though
    note the BUG_ON in set_change_info).
    
    Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    39ca1bf6