| To: | Mingming Cao <cmm@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 1/5][TAKE3] fallocate() implementation on i86, x86_64 and powerpc |
| From: | "Amit K. Arora" <aarora@xxxxxxxxxxxxxxxxxx> |
| Date: | Wed, 16 May 2007 18:01:24 +0530 |
| Cc: | torvalds@xxxxxxxx, akpm@xxxxxxxxxxxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-ext4@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx, suparna@xxxxxxxxxx |
| In-reply-to: | <1179276167.4819.22.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| References: | <20070417125514.GA7574@xxxxxxxxxxxxxxxxxxxx> <20070418130600.GW5967@xxxxxxxxxxxxxxxxxxxx> <20070420135146.GA21352@xxxxxxxxxxxxxxxxxxxx> <20070420145918.GY355@xxxxxxxxxxxxxxxxxxxxxxxx> <20070424121632.GA10136@xxxxxxxxxxxxxxxxxxxx> <20070426175056.GA25321@xxxxxxxxxxxxxxxxxxxx> <20070515193722.GA3487@xxxxxxxxxxxxxxxxxxxx> <20070515195421.GA2948@xxxxxxxxxxxxxxxxxxxx> <20070515200359.GA5834@xxxxxxxxxxxxxxxxxxxx> <1179276167.4819.22.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.1i |
On Tue, May 15, 2007 at 05:42:46PM -0700, Mingming Cao wrote:
> On Wed, 2007-05-16 at 01:33 +0530, Amit K. Arora wrote:
> > This patch implements sys_fallocate() and adds support on i386, x86_64
> > and powerpc platforms.
>
> > @@ -1137,6 +1148,8 @@ struct inode_operations {
> > ssize_t (*listxattr) (struct dentry *, char *, size_t);
> > int (*removexattr) (struct dentry *, const char *);
> > void (*truncate_range)(struct inode *, loff_t, loff_t);
> > + long (*fallocate)(struct inode *inode, int mode, loff_t offset,
> > + loff_t len);
> > };
>
> Does the return value from fallocate inode operation has to be *long*?
> It's not consistent with the ext4_fallocate() define in patch 4/5,
I think ->fallocate() should return a "long", since sys_fallocate() has
to return what ->fallocate() returns and hence their return type should
ideally match.
> +int ext4_fallocate(struct inode *inode, int mode, loff_t offset, loff_t
> len)
I will change the ext4_fallocate() to return a "long" (in patch 4/5)
in the next post.
Agree ?
Thanks!
--
Regards,
Amit Arora
>
> thus cause compile warnings.
>
>
>
> Mingming
|
| Previous by Date: | Re: OOPS on 2.6.21-rc6 [Solved], Paul Göser |
|---|---|
| Next by Date: | Re: [PATCH 1/5][TAKE3] fallocate() implementation on i86, x86_64 and powerpc, Amit K. Arora |
| Previous by Thread: | Re: [PATCH 1/5][TAKE3] fallocate() implementation on i86, x86_64 and powerpc, Mingming Cao |
| Next by Thread: | Re: [PATCH 1/5][TAKE3] fallocate() implementation on i86, x86_64 and powerpc, David Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |