Eric Sandeen 83d3449e8a xfs: remove incorrect ASSERT in xfs_rename
commit e445976537ad139162980bee015b7364e5b64fff upstream.

This ASSERT in xfs_rename is a) incorrect, because
(RENAME_WHITEOUT|RENAME_NOREPLACE) is a valid combination, and
b) unnecessary, because actual invalid flag combinations are already
handled at the vfs level in do_renameat2() before we get called.
So, remove it.

Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Fixes: 7dcf5c3e4527 ("xfs: add RENAME_WHITEOUT support")
Reported-by: Ayushman Dutta <ayudutta@amazon.com>
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-12 16:35:11 +02:00
..
2021-09-02 09:21:27 -07:00
2021-06-21 10:05:51 -07:00
2021-09-02 08:26:03 -07:00
2021-09-02 08:26:03 -07:00
2021-08-24 19:13:04 -07:00
2021-09-02 08:26:03 -07:00
2021-04-12 15:04:29 +02:00
2021-04-12 15:04:29 +02:00
2021-08-24 19:13:04 -07:00
2021-01-24 14:43:46 +01:00
2021-01-24 14:43:46 +01:00
2022-07-02 16:41:15 +02:00
2021-06-21 10:05:46 -07:00
2021-01-24 14:43:46 +01:00
2021-08-19 10:07:14 -07:00