diff options
| author | Christian Brauner <brauner@kernel.org> | 2025-04-08 11:28:10 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-04-08 11:28:10 +0300 |
| commit | c9b380a0171aa6c05659330483bdabc1aabef173 (patch) | |
| tree | 6720989d4ed92c53a41224a1ee09bcd50872baba /include/linux | |
| parent | 9d36c5145a9e6a3b0c3fbafd579bd8b33343c40d (diff) | |
| parent | 5f3e0b4a1f59ab616a09a45fddddefa6ef756229 (diff) | |
| download | linux-c9b380a0171aa6c05659330483bdabc1aabef173.tar.xz | |
Merge patch series "fs: sort out cosmetic differences between stat funcs and add predicts"
Predict fastpaths in stat and during fdput().
* patches from https://lore.kernel.org/20250406235806.1637000-1-mjguzik@gmail.com:
fs: predict not having to do anything in fdput()
fs: sort out cosmetic differences between stat funcs and add predicts
Link: https://lore.kernel.org/20250406235806.1637000-1-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/file.h b/include/linux/file.h index 302f11355b10..af1768d934a0 100644 --- a/include/linux/file.h +++ b/include/linux/file.h @@ -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)); } |
