Al Viro 40ba433a85 new helper: inode_wrong_type()
commit 6e3e2c4362e41a2f18e3f7a5ad81bd2f49a47b85 upstream.

inode_wrong_type(inode, mode) returns true if setting inode->i_mode
to given value would've changed the inode type.  We have enough of
those checks open-coded to make a helper worthwhile.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-08 08:49:01 +02:00
..
2021-09-08 08:49:01 +02:00
2020-10-16 11:11:22 -07:00
2021-09-08 08:49:01 +02:00
2021-07-14 16:55:59 +02:00
2021-09-08 08:49:01 +02:00
2021-09-08 08:49:01 +02:00
2021-09-08 08:49:01 +02:00
2021-08-04 12:46:40 +02:00
2021-09-08 08:49:01 +02:00
2021-07-14 16:56:12 +02:00
2020-09-10 14:03:31 -07:00
2020-08-04 21:02:38 -04:00
2021-07-19 09:44:51 +02:00
2020-07-31 08:16:01 +02:00
2020-10-23 11:33:41 -07:00
2020-10-23 11:33:41 -07:00
2020-10-24 12:40:18 -07:00
2020-08-27 16:06:47 -04:00
2020-07-31 08:16:01 +02:00