mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2026-01-27 12:47:24 +01:00
fs: predict not having to do anything in fdput()
This matches the annotation in fdget(). Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Link: https://lore.kernel.org/20250406235806.1637000-2-mjguzik@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
eaec2cd167
commit
5f3e0b4a1f
|
|
@ -59,7 +59,7 @@ static inline struct fd CLONED_FD(struct file *f)
|
|||
|
||||
static inline void fdput(struct fd fd)
|
||||
{
|
||||
if (fd.word & FDPUT_FPUT)
|
||||
if (unlikely(fd.word & FDPUT_FPUT))
|
||||
fput(fd_file(fd));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user