Files
kernel_google_redbull/fs
Al Viro 9f6a8afb37 UPSTREAM: new inode method: ->free_inode()
A lot of ->destroy_inode() instances end with call_rcu() of a callback
that does RCU-delayed part of freeing.  Introduce a new method for
doing just that, with saner signature.

Rules:
->destroy_inode		->free_inode
	f			g		immediate call of f(),
						RCU-delayed call of g()
	f			NULL		immediate call of f(),
						no RCU-delayed calls
	NULL			g		RCU-delayed call of g()
	NULL			NULL		RCU-delayed default freeing

IOW, NULL ->free_inode gives the same behaviour as now.

Note that NULL, NULL is equivalent to NULL, free_inode_nonrcu; we could
mandate the latter form, but that would have very little benefit beyond
making rules a bit more symmetric.  It would break backwards compatibility,
require extra boilerplate and expected semantics for (NULL, NULL) pair
would have no use whatsoever...

Change-Id: I828dd519b381a1f25013ec3d1eae0b6835eb9c26
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2025-09-08 17:20:25 +03:00
..
2024-11-08 16:19:19 +01:00
2021-09-22 11:48:02 +02:00
2024-11-08 16:19:17 +01:00
2024-09-04 13:13:01 +02:00
2023-09-23 10:48:17 +02:00
2022-06-14 16:59:24 +02:00
2020-08-21 15:15:18 +05:30
2020-08-21 15:15:18 +05:30
2020-08-21 15:15:18 +05:30
2020-08-21 15:15:18 +05:30
2024-07-05 09:00:35 +02:00
2022-02-28 19:00:41 +05:30
2023-12-08 09:28:23 +00:00
2020-08-21 15:15:18 +05:30