From: Li Zefan <lizf@cn.fujitsu.com>
To: Josef Bacik <josef@redhat.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] Btrfs: use the normal checksumming infrastructure for free space cache
Date: Mon, 13 Jun 2011 09:52:32 +0800 [thread overview]
Message-ID: <4DF56D60.4070208@cn.fujitsu.com> (raw)
In-Reply-To: <1307734827-10697-1-git-send-email-josef@redhat.com>
Josef Bacik wrote:
> We used to store the checksums of the space cache directly in the space cache,
> however that doesn't work out too well if we have more space than we can fit the
> checksums into the first page. So instead use the normal checksumming
> infrastructure. There were problems with doing this originally but those
> problems don't exist now so this works out fine. Thanks,
>
This looks great, so I'll drop my patch that extends the original code to
allow more than 1 crc page.
one comment below:
...
> @@ -879,11 +802,7 @@ int __btrfs_write_out_cache(struct btrfs_root *root, struct inode *inode,
>
> ret = 1;
>
> -out_free:
> - kfree(checksums);
> - kfree(pages);
> -
leak memory by removing kfree(pages).
next prev parent reply other threads:[~2011-06-13 1:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-10 19:40 [PATCH] Btrfs: use the normal checksumming infrastructure for free space cache Josef Bacik
2011-06-13 1:52 ` Li Zefan [this message]
2011-06-13 1:53 ` Chris Mason
2011-06-13 2:05 ` Li Zefan
2011-06-13 2:10 ` Li Zefan
2011-06-13 2:20 ` Li Zefan
2011-06-13 14:11 ` Chris Mason
2011-06-13 14:26 ` Josef Bacik
2011-06-13 13:56 ` Josef Bacik
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=4DF56D60.4070208@cn.fujitsu.com \
--to=lizf@cn.fujitsu.com \
--cc=josef@redhat.com \
--cc=linux-btrfs@vger.kernel.org \
/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.