mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-22 20:30:58 +02:00
[tree-wide] finally take no_llseek out
no_llseek had been defined to NULL two years ago, in commit 868941b
("fs: remove no_llseek")
To quote that commit,
At -rc1 we'll need do a mechanical removal of no_llseek -
git grep -l -w no_llseek | grep -v porting.rst | while read i; do
sed -i '/\<no_llseek\>/d' $i
done
would do it.
Unfortunately, that hadn't been done. Linus, could you do that now, so
that we could finally put that thing to rest? All instances are of the
form
.llseek = no_llseek,
so it's obviously safe.
This commit is contained in:
@@ -283,7 +283,6 @@ static int iter_release(struct inode *inode, struct file *file)
|
||||
|
||||
const struct file_operations bpf_iter_fops = {
|
||||
.open = iter_open,
|
||||
.llseek = no_llseek,
|
||||
.read = bpf_seq_read,
|
||||
.release = iter_release,
|
||||
};
|
||||
|
@@ -6594,7 +6594,6 @@ static int perf_fasync(int fd, struct file *filp, int on)
|
||||
}
|
||||
|
||||
static const struct file_operations perf_fops = {
|
||||
.llseek = no_llseek,
|
||||
.release = perf_release,
|
||||
.read = perf_read,
|
||||
.poll = perf_poll,
|
||||
|
@@ -445,7 +445,6 @@ static const struct file_operations snapshot_fops = {
|
||||
.release = snapshot_release,
|
||||
.read = snapshot_read,
|
||||
.write = snapshot_write,
|
||||
.llseek = no_llseek,
|
||||
.unlocked_ioctl = snapshot_ioctl,
|
||||
#ifdef CONFIG_COMPAT
|
||||
.compat_ioctl = snapshot_compat_ioctl,
|
||||
|
@@ -1240,7 +1240,6 @@ const struct file_operations relay_file_operations = {
|
||||
.poll = relay_file_poll,
|
||||
.mmap = relay_file_mmap,
|
||||
.read = relay_file_read,
|
||||
.llseek = no_llseek,
|
||||
.release = relay_file_release,
|
||||
.splice_read = relay_file_splice_read,
|
||||
};
|
||||
|
@@ -148,7 +148,6 @@ static int posix_clock_release(struct inode *inode, struct file *fp)
|
||||
|
||||
static const struct file_operations posix_clock_file_operations = {
|
||||
.owner = THIS_MODULE,
|
||||
.llseek = no_llseek,
|
||||
.read = posix_clock_read,
|
||||
.poll = posix_clock_poll,
|
||||
.unlocked_ioctl = posix_clock_ioctl,
|
||||
|
@@ -304,7 +304,6 @@ static ssize_t monitor_enable_write_data(struct file *filp, const char __user *u
|
||||
|
||||
static const struct file_operations interface_enable_fops = {
|
||||
.open = simple_open,
|
||||
.llseek = no_llseek,
|
||||
.write = monitor_enable_write_data,
|
||||
.read = monitor_enable_read_data,
|
||||
};
|
||||
@@ -327,7 +326,6 @@ static ssize_t monitor_desc_read_data(struct file *filp, char __user *user_buf,
|
||||
|
||||
static const struct file_operations interface_desc_fops = {
|
||||
.open = simple_open,
|
||||
.llseek = no_llseek,
|
||||
.read = monitor_desc_read_data,
|
||||
};
|
||||
|
||||
@@ -672,7 +670,6 @@ static ssize_t monitoring_on_write_data(struct file *filp, const char __user *us
|
||||
|
||||
static const struct file_operations monitoring_on_fops = {
|
||||
.open = simple_open,
|
||||
.llseek = no_llseek,
|
||||
.write = monitoring_on_write_data,
|
||||
.read = monitoring_on_read_data,
|
||||
};
|
||||
|
@@ -426,7 +426,6 @@ static ssize_t reacting_on_write_data(struct file *filp, const char __user *user
|
||||
|
||||
static const struct file_operations reacting_on_fops = {
|
||||
.open = simple_open,
|
||||
.llseek = no_llseek,
|
||||
.write = reacting_on_write_data,
|
||||
.read = reacting_on_read_data,
|
||||
};
|
||||
|
@@ -7719,7 +7719,6 @@ static const struct file_operations tracing_pipe_fops = {
|
||||
.read = tracing_read_pipe,
|
||||
.splice_read = tracing_splice_read_pipe,
|
||||
.release = tracing_release_pipe,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
static const struct file_operations tracing_entries_fops = {
|
||||
@@ -7784,7 +7783,6 @@ static const struct file_operations snapshot_raw_fops = {
|
||||
.read = tracing_buffers_read,
|
||||
.release = tracing_buffers_release,
|
||||
.splice_read = tracing_buffers_splice_read,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
#endif /* CONFIG_TRACER_SNAPSHOT */
|
||||
@@ -8504,7 +8502,6 @@ static const struct file_operations tracing_buffers_fops = {
|
||||
.release = tracing_buffers_release,
|
||||
.splice_read = tracing_buffers_splice_read,
|
||||
.unlocked_ioctl = tracing_buffers_ioctl,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
static ssize_t
|
||||
|
Reference in New Issue
Block a user