From: Stefan Richter Date: Sat, 10 Apr 2010 15:47:18 +0000 (+0100) Subject: ieee1394: mark char device files as not seekable X-Git-Tag: v2.6.35-rc1~41^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cfe21aae155c26193fde617dc61d37a79a63f86;p=pandora-kernel.git ieee1394: mark char device files as not seekable The - raw1394 (/dev/raw1394), - video1394 (/dev/video1394/*), - dv1394 (/dev/dv1394/*) character device file ABIs do not make any use of lseek(), pread(), or pwrite(). Therefore use nonseekable_open() and, redundantly, set file_operations.llseek to no_llseek to remove any doubt whether the BKL- grabbing default_llseek handler is used. Although all this is legacy code which should be left in peace until it is eventually removed (as it is superseded by firewire-core's ABI), this change seems still worth doing to further minimize the presence of BKL usage in the kernel. Signed-off-by: Stefan Richter --- Reading git-diff-tree failed