diff options
| author | David Howells <[email protected]> | 2023-06-07 08:47:13 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2023-06-07 16:03:12 +0000 |
| commit | a27648c742104a833a01c54becc24429898d85bf (patch) | |
| tree | 50378ba9e63a5e9c3fe495d03feb81e3f66468d5 /drivers/net/ethernet/intel/ice/ice_common.c | |
| parent | Merge tag 'spi-fix-v6.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
| download | kernel-a27648c742104a833a01c54becc24429898d85bf.tar.gz kernel-a27648c742104a833a01c54becc24429898d85bf.zip | |
afs: Fix setting of mtime when creating a file/dir/symlink
kafs incorrectly passes a zero mtime (ie. 1st Jan 1970) to the server when
creating a file, dir or symlink because the mtime recorded in the
afs_operation struct gets passed to the server by the marshalling routines,
but the afs_mkdir(), afs_create() and afs_symlink() functions don't set it.
This gets masked if a file or directory is subsequently modified.
Fix this by filling in op->mtime before calling the create op.
Fixes: e49c7b2f6de7 ("afs: Build an abstraction around an "operation" concept")
Signed-off-by: David Howells <[email protected]>
Reviewed-by: Jeffrey Altman <[email protected]>
Reviewed-by: Marc Dionne <[email protected]>
cc: [email protected]
cc: [email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.c')
0 files changed, 0 insertions, 0 deletions
