]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: add generic_file_llseek_size
authorAndi Kleen <ak@linux.intel.com>
Thu, 15 Sep 2011 23:06:50 +0000 (16:06 -0700)
committerroot <root@serles.lst.de>
Fri, 28 Oct 2011 12:58:59 +0000 (14:58 +0200)
commit85ef0b18700c2e6c4081e4ebce2b1080ff972c01
treeab7ac2b0ec66006efbc27c318c89474a63d6e4d1
parentaf7f5ba8a1dc7f0ca7cc09563a5965f61e9629e8
vfs: add generic_file_llseek_size

Add a generic_file_llseek variant to the VFS that allows passing in
the maximum file size of the file system, instead of always
using maxbytes from the superblock.

This can be used to eliminate some cut'n'paste seek code in ext4.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/read_write.c
include/linux/fs.h