diff options
author | Eric Biggers <[email protected]> | 2019-04-10 13:21:14 -0700 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2019-04-17 12:43:14 -0400 |
commit | 4c4f7c19b3c721aed418bc97907b411608c5c6a0 (patch) | |
tree | f277f0ab8ee56d45ad6ae93950645c405ac7f49c /drivers/net/netdevsim/ipsec.c | |
parent | b01531db6cec2aa330dbc91bfbfaaef4a0d387a4 (diff) |
vfs: use READ_ONCE() to access ->i_link
Use 'READ_ONCE(inode->i_link)' to explicitly support filesystems caching
the symlink target in ->i_link later if it was unavailable at iget()
time, or wasn't easily available. I'll be doing this in fscrypt, to
improve the performance of encrypted symlinks on ext4, f2fs, and ubifs.
->i_link will start NULL and may later be set to a non-NULL value by a
smp_store_release() or cmpxchg_release(). READ_ONCE() is needed on the
read side. smp_load_acquire() is unnecessary because only a data
dependency barrier is required. (Thanks to Al for pointing this out.)
Acked-by: Al Viro <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'drivers/net/netdevsim/ipsec.c')
0 files changed, 0 insertions, 0 deletions