From: Zhao Lei <zhaolei@cn.fujitsu.com>
To: <linux-btrfs@vger.kernel.org>
Cc: Zhao Lei <zhaolei@cn.fujitsu.com>
Subject: [PATCH v2 0/5] btrfs-progs: Add all missing close_ctree and btrfs_close_all_devices
Date: Mon, 26 Oct 2015 18:28:17 +0800 [thread overview]
Message-ID: <cover.1445855131.git.zhaolei@cn.fujitsu.com> (raw)
This patch add all missing close_ctree and btrfs_close_all_devices
to several tools in btrfs progs, to avoid memory leak.
Changelog v1->v2:
Move btrfs_close_all_devices() from cmd-XXX into btrfs.c to make
code simple, and avoid similar problem in cmd-XXX in future.
Zhao Lei (5):
btrfs-progs: btrfs: Add missing btrfs_close_all_devices for btrfs
command
btrfs-progs: Remove all btrfs_close_all_devices in sub-command
btrfs-progs: Add all missing btrfs_close_all_devices to standalone
tools
btrfs-progs: Add missing close_ctree to btrfs-select-super.c
btrfs-progs: use system's default path for math.h
btrfs-calc-size.c | 1 +
btrfs-debug-tree.c | 5 ++++-
btrfs-find-root.c | 1 +
btrfs-map-logical.c | 1 +
btrfs-select-super.c | 3 +++
btrfs.c | 9 ++++++++-
btrfstune.c | 1 +
cmds-check.c | 1 -
cmds-device.c | 3 ---
cmds-replace.c | 2 --
extent-tree.c | 2 +-
11 files changed, 20 insertions(+), 9 deletions(-)
--
1.8.5.1
next reply other threads:[~2015-10-26 10:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 10:28 Zhao Lei [this message]
2015-10-26 10:28 ` [PATCH v2 1/5] btrfs-progs: btrfs: Add missing btrfs_close_all_devices for btrfs command Zhao Lei
2015-10-26 10:28 ` [PATCH v2 2/5] btrfs-progs: Remove all btrfs_close_all_devices in sub-command Zhao Lei
2015-10-26 10:28 ` [PATCH v2 3/5] btrfs-progs: Add all missing btrfs_close_all_devices to standalone tools Zhao Lei
2015-10-26 10:28 ` [PATCH v2 4/5] btrfs-progs: Add missing close_ctree to btrfs-select-super.c Zhao Lei
2015-10-26 10:28 ` [PATCH v2 5/5] btrfs-progs: use system's default path for math.h Zhao Lei
2015-10-26 14:57 ` [PATCH v2 0/5] btrfs-progs: Add all missing close_ctree and btrfs_close_all_devices David Sterba
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=cover.1445855131.git.zhaolei@cn.fujitsu.com \
--to=zhaolei@cn.fujitsu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).