From: Akira Fujita <a-fujita@rs.jp.nec.com>
To: Shen Feng <shen@cn.fujitsu.com>
Cc: linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org,
Theodore Tso <tytso@mit.edu>, Mingming Cao <cmm@us.ibm.com>
Subject: Re: [RFC][PATCH 7/8]ext4: move victim files for the target file (-f mode)
Date: Mon, 16 Jun 2008 17:39:35 +0900 [thread overview]
Message-ID: <485626C7.2090106@rs.jp.nec.com> (raw)
In-Reply-To: <4855D32A.1020000@cn.fujitsu.com>
Shen Feng Wrote:
>
> Akira Fujita Wrote:
>> ext4: online defrag-- Move victim files for the target file (-f mode)
>>
>> From: Akira Fujita <a-fujita@rs.jp.nec.com>
>>
>> Move victim files to make sufficient space and reallocates
>> the contiguous blocks for the target file.
>>
>> Signed-off-by: Akira Fujita <a-fujita@rs.jp.nec.com>
>> Signed-off-by: Takashi Sato <t-sato@yk.jp.nec.com>
>> ---
>> fs/ext4/balloc.c | 10 +-
>> fs/ext4/defrag.c | 460 +++++++++++++++++++++++++++++++++++++++++++++---
>> fs/ext4/ext4.h | 29 +++-
>> fs/ext4/ext4_extents.h | 5 +
>> fs/ext4/extents.c | 54 +++++--
>> fs/ext4/ioctl.c | 5 +-
>> fs/ext4/mballoc.c | 5 +
>> fs/ext4/mballoc.h | 1 +
>> 8 files changed, 522 insertions(+), 47 deletions(-)
>>
>
> ...snip...
>
>> diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
>> index d0b1301..88fd100 100644
>> --- a/fs/ext4/ext4.h
>> +++ b/fs/ext4/ext4.h
>> @@ -94,6 +94,11 @@ struct ext4_allocation_request {
>> unsigned long len;
>> /* flags. see above EXT4_MB_HINT_* */
>> unsigned long flags;
>> + /*
>> + * for ext4 online defrag:
>> + * the block group which is excepted from allocation target
>> + */
>> + long long excepted_group;
>> };
>
> Why not ext4_group_t for excepted_group here?
ac_excepted_group has not only excepted block group number
but also -1 (it means any block groups are accepted).
So we should keep it as long long variable to show
the special status correctly in large ext4.
Regards,
Akira Fujita
prev parent reply other threads:[~2008-06-16 8:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-30 11:18 [RFC][PATCH 7/8]ext4: move victim files for the target file (-f mode) Akira Fujita
2008-06-16 2:42 ` Shen Feng
2008-06-16 8:39 ` Akira Fujita [this message]
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=485626C7.2090106@rs.jp.nec.com \
--to=a-fujita@rs.jp.nec.com \
--cc=cmm@us.ibm.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=shen@cn.fujitsu.com \
--cc=tytso@mit.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.