Christian Brauner db7fb6fe3d ksmbd: remove setattr preparations in set_file_basic_info()
Permission checking and copying over ownership information is the task
of the underlying filesystem not ksmbd. The order is also wrong here.
This modifies the inode before notify_change(). If notify_change() fails
this will have changed ownership nonetheless. All of this is unnecessary
though since the underlying filesystem's ->setattr handler will do all
this (if required) by itself.

Cc: Steve French <stfrench@microsoft.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Namjae Jeon <namjae.jeon@samsung.com>
Cc: Hyunchul Lee <hyc.lee@gmail.com>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: linux-cifs@vger.kernel.org
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
2021-09-03 23:29:45 -05:00
..
2021-03-30 16:54:49 -07:00
2021-08-26 11:05:11 -07:00
2021-08-30 12:38:13 -07:00
2021-06-14 09:07:45 +02:00
2021-04-12 15:04:29 +02:00
2021-07-06 11:06:04 -07:00
\n
2021-08-30 10:24:50 -07:00
\n
2021-08-30 10:24:50 -07:00
2021-08-30 18:52:11 -07:00
\n
2021-08-30 10:24:50 -07:00
2021-07-02 14:25:17 -07:00
2021-07-05 13:51:41 -07:00
2021-07-06 20:14:41 -04:00
\n
2021-08-30 10:04:31 -07:00
2021-06-30 12:21:16 -07:00
2021-06-29 10:53:48 -07:00
2021-08-16 10:50:32 -06:00
2021-08-30 18:52:11 -07:00
\n
2021-08-30 10:24:50 -07:00
2021-08-30 19:30:30 -07:00
2021-05-18 20:15:58 -04:00
2021-08-23 13:41:26 -06:00
2021-08-30 19:39:59 -07:00
2021-07-27 11:00:36 +02:00
2021-06-29 10:53:48 -07:00
2021-08-30 19:39:59 -07:00
2021-02-21 11:02:48 -08:00
2021-08-10 17:57:22 +02:00