From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Namjae Jeon <linkinjeon@gmail.com>
Cc: akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org,
Namjae Jeon <namjae.jeon@samsung.com>,
Amit Sahrawat <a.sahrawat@samsung.com>
Subject: Re: [PATCH RESEND v5] fat: editions to support fat_fallocate
Date: Wed, 19 Jun 2013 02:33:01 +0900 [thread overview]
Message-ID: <87txkvjpde.fsf@devron.myhome.or.jp> (raw)
In-Reply-To: <CAKYAXd8kyN1w5GJ8zCoKL+XS67125dUf0ivqCQWKjGCSxnXYpg@mail.gmail.com> (Namjae Jeon's message of "Tue, 18 Jun 2013 14:47:10 +0900")
Namjae Jeon <linkinjeon@gmail.com> writes:
>>If above is correct, right implement to change get_block().
> Now when we try to write in the fallocated region ( with keep size) in
> the fat_write_begin when it is called first time it checks that the
> mismatch is present between the mmu_private and mmu_actual , and hence
> zero out the region ; since buffer_new is not set for fallocated
> region by fat_get_block , we explicitly zero out the lseeked region
> using "fat_zero_falloc_area" and normal write occurs beyond that , and
> i_size is updated accordingly , and as such there is no need to move
> the code to fat_get_block .
OK. So, like I said, you *changed* the behavior of get_block() via
fallocate() change, right? (I think, now, you noticed fat_get_block()
was changed.) Since you changed the behavior of get_block(), you had to
hack write_begin(). (IMO, that patch is dirty hack to fix write_begin()
path only)
Likewise, you have to prove all callers of get_block() must work
collectedly with that change.
What happen on direct I/O, bmap ioctl, etc.? Well, anyway, please fix
the root cause of change of behavior.
Thanks.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
next prev parent reply other threads:[~2013-06-18 17:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-28 0:08 [PATCH RESEND v5] fat: editions to support fat_fallocate Namjae Jeon
2013-04-29 14:31 ` OGAWA Hirofumi
2013-05-01 4:14 ` Namjae Jeon
2013-05-01 6:42 ` OGAWA Hirofumi
2013-05-02 4:46 ` Namjae Jeon
2013-05-02 5:12 ` OGAWA Hirofumi
2013-05-02 6:12 ` Namjae Jeon
2013-05-02 7:36 ` OGAWA Hirofumi
2013-05-02 7:43 ` OGAWA Hirofumi
2013-05-02 9:15 ` Namjae Jeon
2013-05-02 9:34 ` OGAWA Hirofumi
2013-05-02 9:56 ` Namjae Jeon
2013-06-18 5:47 ` Namjae Jeon
2013-06-18 17:33 ` OGAWA Hirofumi [this message]
2013-06-20 6:28 ` Namjae Jeon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87txkvjpde.fsf@devron.myhome.or.jp \
--to=hirofumi@mail.parknet.co.jp \
--cc=a.sahrawat@samsung.com \
--cc=akpm@linux-foundation.org \
--cc=linkinjeon@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=namjae.jeon@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox