diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 13:52:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 13:52:56 -0400 |
commit | 092e0e7e520a1fca03e13c9f2d157432a8657ff2 (patch) | |
tree | 451897252c4c08c4b5a8ef535da156f1e817e80b /fs/proc | |
parent | 79f14b7c56d3b3ba58f8b43d1f70b9b71477a800 (diff) | |
parent | 776c163b1b93c8dfa5edba885bc2bfbc2d228a5f (diff) |
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
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/base.c | 8 | ||||
-rw-r--r-- | fs/proc/proc_sysctl.c | 1 | ||||
-rw-r--r-- | fs/proc/root.c | 1 | ||||
-rw-r--r-- | fs/proc/task_mmu.c | 1 |
4 files changed, 11 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 8e4addaa5424..dc5d5f51f3fe 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -1151,6 +1151,7 @@ static ssize_t oom_score_adj_write(struct file *file, const char __user *buf, | |||
1151 | static const struct file_operations proc_oom_score_adj_operations = { | 1151 | static const struct file_operations proc_oom_score_adj_operations = { |
1152 | .read = oom_score_adj_read, | 1152 | .read = oom_score_adj_read, |
1153 | .write = oom_score_adj_write, | 1153 | .write = oom_score_adj_write, |
1154 | .llseek = default_llseek, | ||
1154 | }; | 1155 | }; |
1155 | 1156 | ||
1156 | #ifdef CONFIG_AUDITSYSCALL | 1157 | #ifdef CONFIG_AUDITSYSCALL |
@@ -2039,11 +2040,13 @@ static ssize_t proc_fdinfo_read(struct file *file, char __user *buf, | |||
2039 | static const struct file_operations proc_fdinfo_file_operations = { | 2040 | static const struct file_operations proc_fdinfo_file_operations = { |
2040 | .open = nonseekable_open, | 2041 | .open = nonseekable_open, |
2041 | .read = proc_fdinfo_read, | 2042 | .read = proc_fdinfo_read, |
2043 | .llseek = no_llseek, | ||
2042 | }; | 2044 | }; |
2043 | 2045 | ||
2044 | static const struct file_operations proc_fd_operations = { | 2046 | static const struct file_operations proc_fd_operations = { |
2045 | .read = generic_read_dir, | 2047 | .read = generic_read_dir, |
2046 | .readdir = proc_readfd, | 2048 | .readdir = proc_readfd, |
2049 | .llseek = default_llseek, | ||
2047 | }; | 2050 | }; |
2048 | 2051 | ||
2049 | /* | 2052 | /* |
@@ -2112,6 +2115,7 @@ static int proc_readfdinfo(struct file *filp, void *dirent, filldir_t filldir) | |||
2112 | static const struct file_operations proc_fdinfo_operations = { | 2115 | static const struct file_operations proc_fdinfo_operations = { |
2113 | .read = generic_read_dir, | 2116 | .read = generic_read_dir, |
2114 | .readdir = proc_readfdinfo, | 2117 | .readdir = proc_readfdinfo, |
2118 | .llseek = default_llseek, | ||
2115 | }; | 2119 | }; |
2116 | 2120 | ||
2117 | /* | 2121 | /* |
@@ -2343,6 +2347,7 @@ static int proc_attr_dir_readdir(struct file * filp, | |||
2343 | static const struct file_operations proc_attr_dir_operations = { | 2347 | static const struct file_operations proc_attr_dir_operations = { |
2344 | .read = generic_read_dir, | 2348 | .read = generic_read_dir, |
2345 | .readdir = proc_attr_dir_readdir, | 2349 | .readdir = proc_attr_dir_readdir, |
2350 | .llseek = default_llseek, | ||
2346 | }; | 2351 | }; |
2347 | 2352 | ||
2348 | static struct dentry *proc_attr_dir_lookup(struct inode *dir, | 2353 | static struct dentry *proc_attr_dir_lookup(struct inode *dir, |
@@ -2751,6 +2756,7 @@ static int proc_tgid_base_readdir(struct file * filp, | |||
2751 | static const struct file_operations proc_tgid_base_operations = { | 2756 | static const struct file_operations proc_tgid_base_operations = { |
2752 | .read = generic_read_dir, | 2757 | .read = generic_read_dir, |
2753 | .readdir = proc_tgid_base_readdir, | 2758 | .readdir = proc_tgid_base_readdir, |
2759 | .llseek = default_llseek, | ||
2754 | }; | 2760 | }; |
2755 | 2761 | ||
2756 | static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd){ | 2762 | 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 | |||
3088 | static const struct file_operations proc_tid_base_operations = { | 3094 | static const struct file_operations proc_tid_base_operations = { |
3089 | .read = generic_read_dir, | 3095 | .read = generic_read_dir, |
3090 | .readdir = proc_tid_base_readdir, | 3096 | .readdir = proc_tid_base_readdir, |
3097 | .llseek = default_llseek, | ||
3091 | }; | 3098 | }; |
3092 | 3099 | ||
3093 | static const struct inode_operations proc_tid_base_inode_operations = { | 3100 | static const struct inode_operations proc_tid_base_inode_operations = { |
@@ -3324,4 +3331,5 @@ static const struct inode_operations proc_task_inode_operations = { | |||
3324 | static const struct file_operations proc_task_operations = { | 3331 | static const struct file_operations proc_task_operations = { |
3325 | .read = generic_read_dir, | 3332 | .read = generic_read_dir, |
3326 | .readdir = proc_task_readdir, | 3333 | .readdir = proc_task_readdir, |
3334 | .llseek = default_llseek, | ||
3327 | }; | 3335 | }; |
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index 5be436ea088e..2fc52552271d 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -364,6 +364,7 @@ static int proc_sys_getattr(struct vfsmount *mnt, struct dentry *dentry, struct | |||
364 | static const struct file_operations proc_sys_file_operations = { | 364 | static const struct file_operations proc_sys_file_operations = { |
365 | .read = proc_sys_read, | 365 | .read = proc_sys_read, |
366 | .write = proc_sys_write, | 366 | .write = proc_sys_write, |
367 | .llseek = default_llseek, | ||
367 | }; | 368 | }; |
368 | 369 | ||
369 | static const struct file_operations proc_sys_dir_file_operations = { | 370 | static const struct file_operations proc_sys_dir_file_operations = { |
diff --git a/fs/proc/root.c b/fs/proc/root.c index 4258384ed22d..93d99b316325 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c | |||
@@ -179,6 +179,7 @@ static int proc_root_readdir(struct file * filp, | |||
179 | static const struct file_operations proc_root_operations = { | 179 | static const struct file_operations proc_root_operations = { |
180 | .read = generic_read_dir, | 180 | .read = generic_read_dir, |
181 | .readdir = proc_root_readdir, | 181 | .readdir = proc_root_readdir, |
182 | .llseek = default_llseek, | ||
182 | }; | 183 | }; |
183 | 184 | ||
184 | /* | 185 | /* |
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 1dbca4e8cc16..871e25ed0069 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c | |||
@@ -539,6 +539,7 @@ static ssize_t clear_refs_write(struct file *file, const char __user *buf, | |||
539 | 539 | ||
540 | const struct file_operations proc_clear_refs_operations = { | 540 | const struct file_operations proc_clear_refs_operations = { |
541 | .write = clear_refs_write, | 541 | .write = clear_refs_write, |
542 | .llseek = noop_llseek, | ||
542 | }; | 543 | }; |
543 | 544 | ||
544 | struct pagemapread { | 545 | struct pagemapread { |