diff options
author | Andi Kleen <ak@linux.intel.com> | 2011-09-15 19:06:50 -0400 |
---|---|---|
committer | root <root@serles.lst.de> | 2011-10-28 08:58:59 -0400 |
commit | 5760495a872d63a182962680a13c2af29235237c (patch) | |
tree | ab7ac2b0ec66006efbc27c318c89474a63d6e4d1 /include/linux/fs.h | |
parent | ef3d0fd27e90f67e35da516dafc1482c82939a60 (diff) |
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>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index db85196f6308..d055cc7d7240 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2403,6 +2403,8 @@ file_ra_state_init(struct file_ra_state *ra, struct address_space *mapping); | |||
2403 | extern loff_t noop_llseek(struct file *file, loff_t offset, int origin); | 2403 | extern loff_t noop_llseek(struct file *file, loff_t offset, int origin); |
2404 | extern loff_t no_llseek(struct file *file, loff_t offset, int origin); | 2404 | extern loff_t no_llseek(struct file *file, loff_t offset, int origin); |
2405 | extern loff_t generic_file_llseek(struct file *file, loff_t offset, int origin); | 2405 | extern loff_t generic_file_llseek(struct file *file, loff_t offset, int origin); |
2406 | extern loff_t generic_file_llseek_size(struct file *file, loff_t offset, | ||
2407 | int origin, loff_t maxsize); | ||
2406 | extern int generic_file_open(struct inode * inode, struct file * filp); | 2408 | extern int generic_file_open(struct inode * inode, struct file * filp); |
2407 | extern int nonseekable_open(struct inode * inode, struct file * filp); | 2409 | extern int nonseekable_open(struct inode * inode, struct file * filp); |
2408 | 2410 | ||