mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
fs: use a consume fence in mnt_idmap()
The routine is used in link_path_walk() for every path component. To my reading the entire point of the fence was to grab a fully populated mnt_idmap, but that's already going to happen with mere consume fence. Eliminates an actual fence on arm64. Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Link: https://lore.kernel.org/r/20241130051712.1036527-1-mjguzik@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
9b7da575f8
commit
3212a8f340
|
|
@ -76,7 +76,7 @@ struct vfsmount {
|
|||
static inline struct mnt_idmap *mnt_idmap(const struct vfsmount *mnt)
|
||||
{
|
||||
/* Pairs with smp_store_release() in do_idmap_mount(). */
|
||||
return smp_load_acquire(&mnt->mnt_idmap);
|
||||
return READ_ONCE(mnt->mnt_idmap);
|
||||
}
|
||||
|
||||
extern int mnt_want_write(struct vfsmount *mnt);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user