Files
kernel_google_wahoo/include/linux
Miklos Szeredi 04fc80eccc 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().

Change-Id: I1a46ece3b40b05c9f18fd13b98062d2a959b76a0
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Alexei Starovoitov <ast@kernel.org>
2023-11-16 20:18:22 +08:00
..
2022-11-20 20:51:36 +01:00
2017-05-22 23:19:33 -07:00
2017-07-15 11:57:44 +02:00
2018-04-12 09:58:05 -07:00
2021-02-03 23:16:16 +01:00
2021-12-14 10:35:51 +01:00
2017-01-23 11:03:24 +05:30
2022-03-04 20:16:57 +01:00
2017-05-04 16:43:06 +00:00
2021-11-26 11:58:33 +01:00
2020-08-26 07:32:20 -07:00
2022-03-04 20:16:44 +01:00
2022-11-15 21:35:29 +01:00
2019-04-03 10:24:12 +02:00
2019-01-11 07:53:18 +09:00
2020-04-02 19:02:39 +02:00
2016-11-08 10:23:45 -08:00
2022-11-15 21:35:29 +01:00
2021-03-07 11:37:45 +01:00
2018-11-21 09:27:36 +01:00
2019-12-21 11:36:50 +01:00
2020-12-14 00:49:15 -07:00
2022-11-15 21:35:32 +01:00
2020-09-23 21:48:05 -07:00
2020-04-02 19:02:39 +02:00
2021-12-14 10:03:49 +01:00
2018-08-23 12:00:19 -07:00
2018-08-23 12:00:19 -07:00