rebased to 2.6.22-rc1, updated fallocate() patches; added fallocate-1b-fallocate_inod...
[ext4-patch-queue.git] / fallocate-1b-fallocate_inode_op_fix.patch
blob0e8af80c67793839026de18c12bad5f041162b07
1 Fixed fallocate inode operation return value type.
3 Signed-Off-By: Mingming Cao <cmm@us.ibm.com>
4 Index: linux-2.6.22-rc1/include/linux/fs.h
5 ===================================================================
6 --- linux-2.6.22-rc1.orig/include/linux/fs.h 2007-05-15 17:38:59.000000000 -0700
7 +++ linux-2.6.22-rc1/include/linux/fs.h 2007-05-15 17:39:20.000000000 -0700
8 @@ -1148,7 +1148,7 @@
9 ssize_t (*listxattr) (struct dentry *, char *, size_t);
10 int (*removexattr) (struct dentry *, const char *);
11 void (*truncate_range)(struct inode *, loff_t, loff_t);
12 - long (*fallocate)(struct inode *inode, int mode, loff_t offset,
13 + int (*fallocate)(struct inode *inode, int mode, loff_t offset,
14 loff_t len);