diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2020-01-26 10:22:24 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-03-13 21:09:12 -0400 |
commit | 59e96e65833e05a9410327627d91ccef39392a25 (patch) | |
tree | b278bf6a0756b176ef84b61b65e981e8afe8cd8c /tools/perf/scripts/python | |
parent | 3ad5615a071f7c1c41b2e23b9ffde73b09499eb0 (diff) |
do_last(): don't bother with keeping got_write in FMODE_OPENED case
it's easier to drop it right after lookup_open() and regain if
needed (i.e. if we will need to truncate). On the non-FMODE_OPENED
path we do that anyway. In case of FMODE_CREATED we won't be
needing it. And it's easier to prove correctness that way,
especially since the initial failure to get write access is not
always fatal; proving that we'll never end up truncating in that
case is rather convoluted.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions