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
..
2019-08-28 21:13:45 -04:00
2018-01-22 20:13:07 -08:00
2017-11-02 11:10:55 +01:00
2020-09-25 08:18:57 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-06-01 17:44:45 -04:00
2017-11-02 11:10:55 +01:00
2020-10-02 09:37:42 -04:00
2018-10-29 16:58:04 -04:00
2019-07-03 16:57:17 +02:00
2021-03-25 09:04:08 +01:00
2020-02-06 11:22:55 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2015-07-20 14:58:46 -04:00
2021-04-07 15:00:03 +02:00
2017-11-02 11:10:55 +01:00
2020-09-25 18:01:26 -04:00
2020-07-24 17:25:13 -04:00
2020-10-12 10:29:44 -04:00
2020-10-12 10:29:44 -04:00
2020-11-05 17:20:12 -05:00
2021-01-23 16:03:58 +01:00
2016-06-24 12:11:52 -04:00
2021-04-07 15:00:05 +02:00
2020-07-13 17:28:46 -04:00
2020-08-23 17:36:59 -05:00
2021-05-14 09:50:13 +02:00
2020-07-13 17:28:46 -04:00
2021-07-20 16:05:50 +02:00
2021-01-27 11:55:05 +01:00
2020-09-25 18:01:28 -04:00
2021-03-04 11:38:07 +01:00
2020-07-13 17:27:03 -04:00
2020-08-23 17:36:59 -05:00
2019-12-19 17:46:08 -05:00
2021-09-08 08:49:01 +02:00
2020-12-30 11:53:44 +01:00
2020-10-12 10:29:44 -04:00
2017-11-02 11:10:55 +01:00
2020-09-25 18:01:26 -04:00
2020-02-04 03:05:26 +00:00
2017-11-02 11:10:55 +01:00
2015-10-23 15:57:29 -04:00
2021-07-20 16:05:50 +02:00
2021-07-20 16:05:53 +02:00
2020-07-13 17:27:03 -04:00
2020-10-02 09:37:41 -04:00
2020-10-02 09:37:41 -04:00
2018-09-25 20:34:54 -04:00
2020-10-12 10:29:44 -04:00