aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-host-common.c
diff options
context:
space:
mode:
authorJan Kara <[email protected]>2025-07-09 09:06:36 +0000
committerChristian Brauner <[email protected]>2025-07-10 07:37:32 +0000
commit3bc4e4410830d556b0f40dfa6671bfcaeacc1599 (patch)
treebbce951d228661a21054c030977ffb3c75892515 /drivers/pci/controller/pci-host-common.c
parentfs/libfs: don't assume blocksize <= PAGE_SIZE in generic_check_addressable (diff)
downloadkernel-3bc4e4410830d556b0f40dfa6671bfcaeacc1599.tar.gz
kernel-3bc4e4410830d556b0f40dfa6671bfcaeacc1599.zip
vfs: Remove unnecessary list_for_each_entry_safe() from evict_inodes()
evict_inodes() uses list_for_each_entry_safe() to iterate sb->s_inodes list. However, since we use i_lru list entry for our local temporary list of inodes to destroy, the inode is guaranteed to stay in sb->s_inodes list while we hold sb->s_inode_list_lock. So there is no real need for safe iteration variant and we can use list_for_each_entry() just fine. Signed-off-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/[email protected] Reviewed-by: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions