mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +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:
@@ -1064,7 +1064,6 @@ static const struct file_operations u32_array_fops = {
|
||||
.open = u32_array_open,
|
||||
.release = u32_array_release,
|
||||
.read = u32_array_read,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
/**
|
||||
|
@@ -856,7 +856,6 @@ out:
|
||||
static const struct file_operations dlm_rawmsg_fops = {
|
||||
.open = simple_open,
|
||||
.write = dlm_rawmsg_write,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
void *dlm_create_debug_comms_file(int nodeid, void *data)
|
||||
|
@@ -110,5 +110,4 @@ const struct file_operations efivarfs_file_operations = {
|
||||
.open = simple_open,
|
||||
.read = efivarfs_file_read,
|
||||
.write = efivarfs_file_write,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
@@ -78,7 +78,6 @@ static int fscontext_release(struct inode *inode, struct file *file)
|
||||
const struct file_operations fscontext_fops = {
|
||||
.read = fscontext_read,
|
||||
.release = fscontext_release,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
/*
|
||||
|
@@ -187,27 +187,23 @@ out:
|
||||
static const struct file_operations fuse_ctl_abort_ops = {
|
||||
.open = nonseekable_open,
|
||||
.write = fuse_conn_abort_write,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
static const struct file_operations fuse_ctl_waiting_ops = {
|
||||
.open = nonseekable_open,
|
||||
.read = fuse_conn_waiting_read,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
static const struct file_operations fuse_conn_max_background_ops = {
|
||||
.open = nonseekable_open,
|
||||
.read = fuse_conn_max_background_read,
|
||||
.write = fuse_conn_max_background_write,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
static const struct file_operations fuse_conn_congestion_threshold_ops = {
|
||||
.open = nonseekable_open,
|
||||
.read = fuse_conn_congestion_threshold_read,
|
||||
.write = fuse_conn_congestion_threshold_write,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
static struct dentry *fuse_ctl_add_dentry(struct dentry *parent,
|
||||
|
@@ -2293,7 +2293,6 @@ static long fuse_dev_ioctl(struct file *file, unsigned int cmd,
|
||||
const struct file_operations fuse_dev_operations = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = fuse_dev_open,
|
||||
.llseek = no_llseek,
|
||||
.read_iter = fuse_dev_read,
|
||||
.splice_read = fuse_dev_splice_read,
|
||||
.write_iter = fuse_dev_write,
|
||||
|
@@ -19,7 +19,6 @@ static struct vfsmount *nsfs_mnt;
|
||||
static long ns_ioctl(struct file *filp, unsigned int ioctl,
|
||||
unsigned long arg);
|
||||
static const struct file_operations ns_file_operations = {
|
||||
.llseek = no_llseek,
|
||||
.unlocked_ioctl = ns_ioctl,
|
||||
.compat_ioctl = compat_ptr_ioctl,
|
||||
};
|
||||
|
@@ -1222,7 +1222,6 @@ err:
|
||||
|
||||
const struct file_operations pipefifo_fops = {
|
||||
.open = fifo_open,
|
||||
.llseek = no_llseek,
|
||||
.read_iter = pipe_read,
|
||||
.write_iter = pipe_write,
|
||||
.poll = pipe_poll,
|
||||
|
@@ -2802,7 +2802,6 @@ static const struct file_operations dfs_fops = {
|
||||
.read = dfs_file_read,
|
||||
.write = dfs_file_write,
|
||||
.owner = THIS_MODULE,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -2947,7 +2946,6 @@ static const struct file_operations dfs_global_fops = {
|
||||
.read = dfs_global_file_read,
|
||||
.write = dfs_global_file_write,
|
||||
.owner = THIS_MODULE,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user