fs: document seq_open()'s usage of file->private_data
authorYann Droneaud <ydroneaud@opteya.com>
Tue, 30 Jun 2015 21:57:36 +0000 (14:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jul 2015 02:44:57 +0000 (19:44 -0700)
commit460b865e53c347ebf110e50d499718cd9b39d810
treefe8871e9c28acbad496efca46c87b9366c703267
parent189f9841de23a58ecb4b2602db8581512ff08ba4
fs: document seq_open()'s usage of file->private_data

seq_open() stores its struct seq_file in file->private_data, thus it must
not be modified by user of seq_file.

Link: http://lkml.kernel.org/r/cover.1433193673.git.ydroneaud@opteya.com
Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/seq_file.c