Unverified Commit 5f3e0b4a authored by Mateusz Guzik's avatar Mateusz Guzik Committed by Christian Brauner
Browse files

fs: predict not having to do anything in fdput()

parent eaec2cd1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));
}