fs: remove fs.f_write_hint
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Mar 2022 06:05:29 +0000 (07:05 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Mar 2022 00:55:03 +0000 (17:55 -0700)
commit7b12e49669c99f63bc12351c57e581f1f14d4adf
tree455be97c40de6fbadb5b1be3b2d63a57b593fbee
parent41d36a9f3e5336f5b48c3adba0777b8e217020d7
fs: remove fs.f_write_hint

The value is now completely unused except for reporting it back through
the F_GET_FILE_RW_HINT ioctl, so remove the value and the two ioctls
for it.

Trying to use the F_SET_FILE_RW_HINT and F_GET_FILE_RW_HINT fcntls will
now return EINVAL, just like it would on a kernel that never supported
this functionality in the first place.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220308060529.736277-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/fcntl.c
fs/open.c
include/linux/fs.h