fuse: always invalidate attributes after writes
authorMiklos Szeredi <mszeredi@redhat.com>
Fri, 22 Oct 2021 15:03:02 +0000 (17:03 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 28 Oct 2021 07:45:32 +0000 (09:45 +0200)
commitd347739a0e760e9f370aa021da3feacc37d3e511
tree7af86ada5e4c3f6dbb41103b0260fb9780d59104
parent27ae449ba26eb6c1cd217fa28339841c55bc79e1
fuse: always invalidate attributes after writes

Extend the fuse_write_update_attr() helper to invalidate cached attributes
after a write.

This has already been done in all cases except in fuse_notify_store(), so
this is mostly a cleanup.

fuse_direct_write_iter() calls fuse_direct_IO() which already calls
fuse_write_update_attr(), so don't repeat that again in the former.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dax.c
fs/fuse/dev.c
fs/fuse/file.c
fs/fuse/fuse_i.h