]> err.no Git - linux-2.6/commit
relayfs: fix overwrites
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Wed, 27 Jun 2007 21:10:04 +0000 (14:10 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 28 Jun 2007 18:38:18 +0000 (11:38 -0700)
commita66e356c04ece4a96f44b942b68234c3de8ec3f5
tree16e79721d953bccd37e0a6b506fb2ca686076d18
parent8d62fdebdaf9b866c7e236a8f5cfe90e6dba5773
relayfs: fix overwrites

When I use relayfs with "overwrite" mode, read() still sets incorrect
number of consumed bytes.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Acked-by: Tom Zanussi <zanussi@us.ibm.com>
Acked-by: David Wilder <dwilder@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/relay.c