* [PATCH] [RAMFS NOMMU]: a bug in ramfs_nommu_resize function, passing old size to vmtruncate
@ 2007-05-31 3:31 Bryan Wu
2007-05-31 3:35 ` Bryan Wu
0 siblings, 1 reply; 6+ messages in thread
From: Bryan Wu @ 2007-05-31 3:31 UTC (permalink / raw)
To: Linus Torvalds, akpm, Linux Kernel Mailing List, David Howells
It should be pass "newsize" to vmtruncate function to modify the
inode->i_size,
while the old size is passed to vmtruncate.
This bug was catched by LTP truncate test case on Blackfin platform.
After it was fixed, the LTP truncate test case passed.
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Cc: David Howells <dhowells@redhat.com>
---
fs/ramfs/file-nommu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/ramfs/file-nommu.c b/fs/ramfs/file-nommu.c
index 3b481d5..9345a46 100644
--- a/fs/ramfs/file-nommu.c
+++ b/fs/ramfs/file-nommu.c
@@ -179,7 +179,7 @@ static int ramfs_nommu_resize(struct inode *inode, loff_t newsize, loff_t size)
return ret;
}
- ret = vmtruncate(inode, size);
+ ret = vmtruncate(inode, newsize);
return ret;
}
--
1.5.2
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] [RAMFS NOMMU]: a bug in ramfs_nommu_resize function, passing old size to vmtruncate
2007-05-31 3:31 [PATCH] [RAMFS NOMMU]: a bug in ramfs_nommu_resize function, passing old size to vmtruncate Bryan Wu
@ 2007-05-31 3:35 ` Bryan Wu
2007-05-31 3:55 ` Linus Torvalds
0 siblings, 1 reply; 6+ messages in thread
From: Bryan Wu @ 2007-05-31 3:35 UTC (permalink / raw)
To: bryan.wu; +Cc: Linus Torvalds, akpm, Linux Kernel Mailing List, David Howells
On Thu, 2007-05-31 at 11:31 +0800, Bryan Wu wrote:
> It should be pass "newsize" to vmtruncate function to modify the
> inode->i_size,
> while the old size is passed to vmtruncate.
>
> This bug was catched by LTP truncate test case on Blackfin platform.
> After it was fixed, the LTP truncate test case passed.
>
> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
> Cc: David Howells <dhowells@redhat.com>
> ---
> fs/ramfs/file-nommu.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/ramfs/file-nommu.c b/fs/ramfs/file-nommu.c
> index 3b481d5..9345a46 100644
> --- a/fs/ramfs/file-nommu.c
> +++ b/fs/ramfs/file-nommu.c
> @@ -179,7 +179,7 @@ static int ramfs_nommu_resize(struct inode *inode, loff_t newsize, loff_t size)
> return ret;
> }
>
> - ret = vmtruncate(inode, size);
> + ret = vmtruncate(inode, newsize);
>
> return ret;
> }
David:
Sorry for sending this email several times , my git-send-email got some
problem.
Thanks
-Bryan Wu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] [RAMFS NOMMU]: a bug in ramfs_nommu_resize function, passing old size to vmtruncate
2007-05-31 3:35 ` Bryan Wu
@ 2007-05-31 3:55 ` Linus Torvalds
2007-05-31 4:03 ` Bryan Wu
0 siblings, 1 reply; 6+ messages in thread
From: Linus Torvalds @ 2007-05-31 3:55 UTC (permalink / raw)
To: Bryan Wu; +Cc: akpm, Linux Kernel Mailing List, David Howells
On Thu, 31 May 2007, Bryan Wu wrote:
>
> Sorry for sending this email several times , my git-send-email got some
> problem.
The patch was whitespace-damaged (tabs had been turned into spaces).
But I fixed it up and applied it.
Linus
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] [RAMFS NOMMU]: a bug in ramfs_nommu_resize function, passing old size to vmtruncate
2007-05-31 3:55 ` Linus Torvalds
@ 2007-05-31 4:03 ` Bryan Wu
2007-05-31 4:18 ` Andrew Morton
0 siblings, 1 reply; 6+ messages in thread
From: Bryan Wu @ 2007-05-31 4:03 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Bryan Wu, akpm, Linux Kernel Mailing List, David Howells
On Wed, 2007-05-30 at 20:55 -0700, Linus Torvalds wrote:
>
> On Thu, 31 May 2007, Bryan Wu wrote:
> >
> > Sorry for sending this email several times , my git-send-email got some
> > problem.
>
> The patch was whitespace-damaged (tabs had been turned into spaces).
>
> But I fixed it up and applied it.
>
> Linus
WOW, I tried git-send-email to you, Andrew and LKML. but got a warnning
--
W: unable to extract a valid address from: torvalds@linux-foundation.org akpm@linux-fundation.org linux-kernel@vger.kernel.org
--
But It can send email to Signed-off-by and Cc. I tried 3 times, David
got 3 same emails, sorry for this, -:).
Then I send out this patch manually in my evolution.
Maybe Copy & Paste introduced the whitespace.
I will go back to check my git's problem.
Thanks
-Bryan Wu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] [RAMFS NOMMU]: a bug in ramfs_nommu_resize function, passing old size to vmtruncate
2007-05-31 4:03 ` Bryan Wu
@ 2007-05-31 4:18 ` Andrew Morton
2007-05-31 4:27 ` Bryan Wu
0 siblings, 1 reply; 6+ messages in thread
From: Andrew Morton @ 2007-05-31 4:18 UTC (permalink / raw)
To: bryan.wu; +Cc: Linus Torvalds, Linux Kernel Mailing List, David Howells
On Thu, 31 May 2007 12:03:22 +0800 Bryan Wu <bryan.wu@analog.com> wrote:
> W: unable to extract a valid address from: torvalds@linux-foundation.org akpm@linux-fundation.org linux-kernel@vger.kernel.org
Maybe it didn't like the "fundation" typo.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] [RAMFS NOMMU]: a bug in ramfs_nommu_resize function, passing old size to vmtruncate
2007-05-31 4:18 ` Andrew Morton
@ 2007-05-31 4:27 ` Bryan Wu
0 siblings, 0 replies; 6+ messages in thread
From: Bryan Wu @ 2007-05-31 4:27 UTC (permalink / raw)
To: Andrew Morton
Cc: bryan.wu, Linus Torvalds, Linux Kernel Mailing List, David Howells
On Wed, 2007-05-30 at 21:18 -0700, Andrew Morton wrote:
> On Thu, 31 May 2007 12:03:22 +0800 Bryan Wu <bryan.wu@analog.com> wrote:
>
> > W: unable to extract a valid address from: torvalds@linux-foundation.org akpm@linux-fundation.org linux-kernel@vger.kernel.org
>
> Maybe it didn't like the "fundation" typo.
> -
Oh, I input this Warning message in my Laptop Evolution. It is right on
my Desktop git-send-email. -:)))
Thanks
-Bryan
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-05-31 4:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-31 3:31 [PATCH] [RAMFS NOMMU]: a bug in ramfs_nommu_resize function, passing old size to vmtruncate Bryan Wu
2007-05-31 3:35 ` Bryan Wu
2007-05-31 3:55 ` Linus Torvalds
2007-05-31 4:03 ` Bryan Wu
2007-05-31 4:18 ` Andrew Morton
2007-05-31 4:27 ` Bryan Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®