linux/arch/powerpc/platforms
Al Viro 8fd3395ec9 get rid of ...lookup...fdget_rcu() family
Once upon a time, predecessors of those used to do file lookup
without bumping a refcount, provided that caller held rcu_read_lock()
across the lookup and whatever it wanted to read from the struct
file found.  When struct file allocation switched to SLAB_TYPESAFE_BY_RCU,
that stopped being feasible and these primitives started to bump the
file refcount for lookup result, requiring the caller to call fput()
afterwards.

But that turned them pointless - e.g.
	rcu_read_lock();
	file = lookup_fdget_rcu(fd);
	rcu_read_unlock();
is equivalent to
	file = fget_raw(fd);
and all callers of lookup_fdget_rcu() are of that form.  Similarly,
task_lookup_fdget_rcu() calls can be replaced with calling fget_task().
task_lookup_next_fdget_rcu() doesn't have direct counterparts, but
its callers would be happier if we replaced it with an analogue that
deals with RCU internally.

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2024-10-07 13:34:41 -04:00
..
8xx Revert "powerpc/8xx: Always pin kernel text TLB" 2024-08-30 21:29:52 +10:00
44x powerpc/476: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-07 22:49:12 +10:00
52xx powerpc: Stop using no_llseek 2024-09-05 22:30:14 +10:00
82xx powerpc/82xx: Select FSL_SOC 2023-09-18 12:23:48 +10:00
83xx powerpc: rename SPRN_HID2 define to SPRN_HID2_750FX 2024-05-08 00:25:00 +10:00
85xx powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
86xx powerpc/86xx: Drop unused CONFIG_MPC8610 2023-12-29 15:23:00 +11:00
512x powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
amigaone powerpc/amigaone: Make several functions static 2024-03-07 00:13:28 +11:00
book3s powerpc/vas: Limit open window failure messages in log bufffer 2023-10-20 17:10:03 +11:00
cell get rid of ...lookup...fdget_rcu() family 2024-10-07 13:34:41 -04:00
chrp MIPS: Remove the obsoleted code for include/linux/mv643xx.h 2024-09-13 21:18:42 -07:00
embedded6xx powerpc/embedded6xx: Fix no previous prototype for avr_uart_send() etc. 2024-03-07 00:13:28 +11:00
maple powerpc/maple: Remove obsoleted declaration for maple_calibrate_decr() 2024-08-30 21:05:21 +10:00
microwatt powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
pasemi powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
powermac powerpc/powermac/pfunc_base: Use helper function for_each_child_of_node() 2024-08-29 22:30:34 +10:00
powernv drm next for 6.12-rc1 2024-09-19 10:18:15 +02:00
ps3 driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
pseries move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
fsl_uli1575.c powerpc/fsl_uli1575: Mark uli_exclude_device() as static 2023-04-20 10:20:50 +10:00
Kconfig powerpc/40x: Remove 40x platforms. 2024-06-28 22:28:47 +10:00
Kconfig.cputype powerpc/mm/64s: Restrict THP to Radix or HPT w/64K pages 2024-09-05 22:29:57 +10:00
Makefile powerpc/platforms: Move files from 4xx to 44x 2024-06-28 22:28:48 +10:00