]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: introduce noop_llseek()
authorjan Blunck <jblunck@suse.de>
Wed, 26 May 2010 21:44:48 +0000 (14:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 May 2010 16:12:56 +0000 (09:12 -0700)
commit7e57eeb917632f86a5e709068514572894009d7d
tree541e3f4ed4f2600ffe239e2f23341055199329b1
parent4a99293d9218b755a0b554857c4bf1e0ec6d9270
vfs: introduce noop_llseek()

This is an implementation of ->llseek useable for the rare special case
when userspace expects the seek to succeed but the (device) file is
actually not able to perform the seek.  In this case you use noop_llseek()
instead of falling back to the default implementation of ->llseek.

Signed-off-by: Jan Blunck <jblunck@suse.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Christoph Hellwig <hch@lst.de>
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/read_write.c
include/linux/fs.h