linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] btrfs-progs: Add all missing close_ctree and btrfs_close_all_devices
@ 2015-10-26 10:28 Zhao Lei
  2015-10-26 10:28 ` [PATCH v2 1/5] btrfs-progs: btrfs: Add missing btrfs_close_all_devices for btrfs command Zhao Lei
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Zhao Lei @ 2015-10-26 10:28 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Zhao Lei

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-10-26 14:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-26 10:28 [PATCH v2 0/5] btrfs-progs: Add all missing close_ctree and btrfs_close_all_devices Zhao Lei
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

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).