diff options
author | Bart Van Assche <[email protected]> | 2024-02-02 12:39:22 -0800 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2024-02-06 14:30:47 +0100 |
commit | 1505ba06e52e701600172bccbc3aa7fb9bd5d0da (patch) | |
tree | 903b208ebc5c21e712cc644fef912b221aebe6d4 /include/linux/fpga | |
parent | e769779c0c2c3a475c6b7313d35ff0aa3aceb780 (diff) |
fs: Split fcntl_rw_hint()
Split fcntl_rw_hint() such that there is one helper function per fcntl.
Use READ_ONCE() and WRITE_ONCE() to access the i_write_hint member
instead of protecting such accesses with the inode lock. READ_ONCE() is
not used in I/O path code that reads i_write_hint. Users who want
F_SET_RW_HINT to affect I/O need to make sure that F_SET_RW_HINT has
completed before I/O is submitted that should use the configured write
hint.
Cc: Christoph Hellwig <[email protected]>
Suggested-by: Christoph Hellwig <[email protected]>
Cc: Kanchan Joshi <[email protected]>
Cc: Jeff Layton <[email protected]>
Cc: Chuck Lever <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'include/linux/fpga')
0 files changed, 0 insertions, 0 deletions