Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
* 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl: vfs: make no_llseek the default vfs: don't use BKL in default_llseek llseek: automatically add .llseek fop libfs: use generic_file_llseek for simple_attr mac80211: disallow seeks in minstrel debug code lirc: make chardev nonseekable viotape: use noop_llseek raw: use explicit llseek file operations ibmasmfs: use generic_file_llseek spufs: use llseek in all file operations arm/omap: use generic_file_llseek in iommu_debug lkdtm: use generic_file_llseek in debugfs net/wireless: use generic_file_llseek in debugfs drm: use noop_llseek
This commit is contained in:
@@ -1151,6 +1151,7 @@ static ssize_t oom_score_adj_write(struct file *file, const char __user *buf,
|
||||
static const struct file_operations proc_oom_score_adj_operations = {
|
||||
.read = oom_score_adj_read,
|
||||
.write = oom_score_adj_write,
|
||||
.llseek = default_llseek,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_AUDITSYSCALL
|
||||
@@ -2039,11 +2040,13 @@ static ssize_t proc_fdinfo_read(struct file *file, char __user *buf,
|
||||
static const struct file_operations proc_fdinfo_file_operations = {
|
||||
.open = nonseekable_open,
|
||||
.read = proc_fdinfo_read,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
static const struct file_operations proc_fd_operations = {
|
||||
.read = generic_read_dir,
|
||||
.readdir = proc_readfd,
|
||||
.llseek = default_llseek,
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -2112,6 +2115,7 @@ static int proc_readfdinfo(struct file *filp, void *dirent, filldir_t filldir)
|
||||
static const struct file_operations proc_fdinfo_operations = {
|
||||
.read = generic_read_dir,
|
||||
.readdir = proc_readfdinfo,
|
||||
.llseek = default_llseek,
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -2343,6 +2347,7 @@ static int proc_attr_dir_readdir(struct file * filp,
|
||||
static const struct file_operations proc_attr_dir_operations = {
|
||||
.read = generic_read_dir,
|
||||
.readdir = proc_attr_dir_readdir,
|
||||
.llseek = default_llseek,
|
||||
};
|
||||
|
||||
static struct dentry *proc_attr_dir_lookup(struct inode *dir,
|
||||
@@ -2751,6 +2756,7 @@ static int proc_tgid_base_readdir(struct file * filp,
|
||||
static const struct file_operations proc_tgid_base_operations = {
|
||||
.read = generic_read_dir,
|
||||
.readdir = proc_tgid_base_readdir,
|
||||
.llseek = default_llseek,
|
||||
};
|
||||
|
||||
static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd){
|
||||
@@ -3088,6 +3094,7 @@ static struct dentry *proc_tid_base_lookup(struct inode *dir, struct dentry *den
|
||||
static const struct file_operations proc_tid_base_operations = {
|
||||
.read = generic_read_dir,
|
||||
.readdir = proc_tid_base_readdir,
|
||||
.llseek = default_llseek,
|
||||
};
|
||||
|
||||
static const struct inode_operations proc_tid_base_inode_operations = {
|
||||
@@ -3324,4 +3331,5 @@ static const struct inode_operations proc_task_inode_operations = {
|
||||
static const struct file_operations proc_task_operations = {
|
||||
.read = generic_read_dir,
|
||||
.readdir = proc_task_readdir,
|
||||
.llseek = default_llseek,
|
||||
};
|
||||
|
Reference in New Issue
Block a user