cifs: use locks_inode_context helper
authorJeff Layton <jlayton@kernel.org>
Wed, 16 Nov 2022 13:49:25 +0000 (08:49 -0500)
committerJeff Layton <jlayton@kernel.org>
Wed, 30 Nov 2022 10:08:10 +0000 (05:08 -0500)
commita1fde8ee771f92d2a8bbd79532149ddd34546bc1
tree73b049051cb93059da0ae74f2f8b3a513097f6a4
parentd4e78663f6bc83db44041f224e58e0940662a912
cifs: use locks_inode_context helper

cifs currently doesn't access i_flctx safely. This requires a
smp_load_acquire, as the pointer is set via cmpxchg (a release
operation).

Cc: Steve French <smfrench@samba.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/cifs/file.c