summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2010-04-23 12:17:17 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-04-23 10:39:48 -0700
commit3a3076f4d6e2fa31338a0b007df42a3b32f079e0 (patch)
tree58bb9ec51a2e99baf7b28cebd0c9d3df2fc1c7a7 /include/linux
parent1918ad77f7f908ed67cf37c505c6ad4ac52f1ecf (diff)
downloadop-kernel-dev-3a3076f4d6e2fa31338a0b007df42a3b32f079e0.zip
op-kernel-dev-3a3076f4d6e2fa31338a0b007df42a3b32f079e0.tar.gz
Cleanup generic block based fiemap
This cleans up a few of the complaints of __generic_block_fiemap. I've fixed all the typing stuff, used inline functions instead of macros, gotten rid of a couple of variables, and made sure the size and block requests are all block aligned. It also fixes a problem where sometimes FIEMAP_EXTENT_LAST wasn't being set properly. Signed-off-by: Josef Bacik <josef@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 39d57bc..44f35ae 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2315,8 +2315,9 @@ extern int vfs_fstatat(int , char __user *, struct kstat *, int);
extern int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd,
unsigned long arg);
extern int __generic_block_fiemap(struct inode *inode,
- struct fiemap_extent_info *fieinfo, u64 start,
- u64 len, get_block_t *get_block);
+ struct fiemap_extent_info *fieinfo,
+ loff_t start, loff_t len,
+ get_block_t *get_block);
extern int generic_block_fiemap(struct inode *inode,
struct fiemap_extent_info *fieinfo, u64 start,
u64 len, get_block_t *get_block);
OpenPOWER on IntegriCloud