From: Eric Biederman Date: Wed, 4 Feb 2009 23:12:25 +0000 (-0800) Subject: seq_file: move traverse so it can be used from seq_read X-Git-Tag: v2.6.29-rc4~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33da8892a2f9e7d4b2d9a35fc80833ba2d2b1aa6;p=pandora-kernel.git seq_file: move traverse so it can be used from seq_read In 2.6.25 some /proc files were converted to use the seq_file infrastructure. But seq_files do not correctly support pread(), which broke some usersapce applications. To handle pread correctly we can't assume that f_pos is where we left it in seq_read. So move traverse() so that we can eventually use it in seq_read and do thus some day support pread(). Signed-off-by: Eric Biederman Cc: Paul Turner Cc: Alexey Dobriyan Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed