summaryrefslogtreecommitdiffstats
path: root/MAINTAINERS
diff options
context:
space:
mode:
authorEric Biederman2009-02-18 23:48:16 +0100
committerLinus Torvalds2009-02-19 00:37:53 +0100
commit8f19d472935c83d823fa4cf02bcc0a7b9952db30 (patch)
tree25cabc0b48ad0acb05fa69f92de617cf588fec8d /MAINTAINERS
parentvfs: separate FMODE_PREAD/FMODE_PWRITE into separate flags (diff)
downloadkernel-qcow2-linux-8f19d472935c83d823fa4cf02bcc0a7b9952db30.tar.gz
kernel-qcow2-linux-8f19d472935c83d823fa4cf02bcc0a7b9952db30.tar.xz
kernel-qcow2-linux-8f19d472935c83d823fa4cf02bcc0a7b9952db30.zip
seq_file: properly cope with pread
Currently seq_read assumes that the offset passed to it is always the offset it passed to user space. In the case pread this assumption is broken and we do the wrong thing when presented with pread. To solve this I introduce an offset cache inside of struct seq_file so we know where our logical file position is. Then in seq_read if we try to read from another offset we reset our data structures and attempt to go to the offset user space wanted. [akpm@linux-foundation.org: restore FMODE_PWRITE] [pjt@google.com: seq_open needs its fmode opened up to take advantage of this] Signed-off-by: Eric Biederman <ebiederm@xmission.com> Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Paul Turner <pjt@google.com> Cc: <stable@kernel.org> [2.6.25.x, 2.6.26.x, 2.6.27.x, 2.6.28.x] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions