diff options
author | Ken Sumrall <[email protected]> | 2010-11-24 12:57:00 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2010-11-25 06:50:41 +0900 |
commit | a0822c55779d9319939eac69f00bb729ea9d23da (patch) | |
tree | a12ff25e7718bb04ac2f85c672c9f9c370a8b167 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | c22c7aeff69796f46ae0fcec141538e28f50b24e (diff) |
fuse: fix attributes after open(O_TRUNC)
The attribute cache for a file was not being cleared when a file is opened
with O_TRUNC.
If the filesystem's open operation truncates the file ("atomic_o_trunc"
feature flag is set) then the kernel should invalidate the cached st_mtime
and st_ctime attributes.
Also i_size should be explicitly be set to zero as it is used sometimes
without refreshing the cache.
Signed-off-by: Ken Sumrall <[email protected]>
Cc: Anfei <[email protected]>
Cc: "Anand V. Avati" <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions