diff options
author | Miklos Szeredi <[email protected]> | 2016-09-27 11:03:57 +0200 |
---|---|---|
committer | Miklos Szeredi <[email protected]> | 2016-09-27 11:03:57 +0200 |
commit | e0e0be8a835520e2f7c89f214dfda570922a1b90 (patch) | |
tree | 42033a89a20c26dc0f19e9119803885b1f7a06c6 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | f03b8ad8d38634d13e802165cc15917481b47835 (diff) |
libfs: support RENAME_NOREPLACE in simple_rename()
This is trivial to do:
- add flags argument to simple_rename()
- check if flags doesn't have any other than RENAME_NOREPLACE
- assign simple_rename() to .rename2 instead of .rename
Filesystems converted:
hugetlbfs, ramfs, bpf.
Debugfs uses simple_rename() to implement debugfs_rename(), which is for
debugfs instances to rename files internally, not for userspace filesystem
access. For this case pass zero flags to simple_rename().
Signed-off-by: Miklos Szeredi <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions