On Sun, 15 Feb 2015 16:27:27 +0800 "Wang, Yalin"
wrote:
> +/*
> + * __*_if_need version is used in cases that you don't want write a bit which
> + * have been set / clear, to avoid dirty cacheline.
> + */
> +static inline void __set_bit_if_need(int nr, volatile unsigned long *addr)
"if_need" is
Test bit before clear close_on_exec and open_fds,
by trace __clear_bit(), these 2 place are false in most times,
we test it so that we don't need clear_bit, and we can win
in most time.
Add *_if_need bitop non-atomic version.
Signed-off-by: Yalin Wang
---
fs/file.c
2 matches
Mail list logo