diff options
| author | Mehdi Hassan <mehdi.h.business@pm.me> | 2026-07-04 02:35:06 +0000 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-07-05 20:08:26 -0500 |
| commit | 5b4d8e11ba68cd9697de49861a818c75f21e463d (patch) | |
| tree | 5340ec8dc4f5a44c8830e78691328002dd48af89 /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git | |
| parent | 8cdeaa50eae8dad34885515f62559ee83e7e8dda (diff) | |
smb: client: refactor cifs_revalidate_mapping() to use clear_and_wake_up_bit()
In the `skip_invalidate:` path under `cifs_revalidate_mapping()`, the
sequence of calls:
clear_bit_unlock();
smp_mb__after_atomic();
wake_up_bit();
can be replaced exactly by `clear_and_wake_up_bit()`.
The `clear_and_wake_up_bit()` helper function was introduced in
'commit 8236b0ae31c83 ("bdi: wake up concurrent wb_shutdown()
callers.")' to replace equivalent instances of this sequence of
operations. This substitution has been applied in multiple subsystems.
Compile-tested with CONFIG_CIFS=y on x86_64, no new warnings present.
Suggested-by: Agatha Isabelle Moreira <code@agatha.dev>
Link: https://kernelnewbies.org/Beginner%20Cleanup%20and%20Refactor%20Tasks%20by%20Agatha%20Isabelle%20Moreira#task_010
Cc: Agatha Isabelle Moreira <code@agatha.dev>
Signed-off-by: Mehdi Hassan <mehdi.h.business@pm.me>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
