linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/12] disk-io.c / open_ctree cleanup & refactoring
@ 2014-08-01 23:12 Eric Sandeen
  2014-08-01 23:12 ` [PATCH 01/12] btrfs: remove unused fs_info arg from btrfs_close_extra_devices() Eric Sandeen
                   ` (11 more replies)
  0 siblings, 12 replies; 17+ messages in thread
From: Eric Sandeen @ 2014-08-01 23:12 UTC (permalink / raw)
  To: linux-btrfs

This is mostly to refactor open_ctree(); at the end of the series
it's "only" around 600 lines instead of 900.

The first 2 patches are just little cleanups I saw while doing this;
the 3rd actually is something of a bugfix.

The rest are refactoring - this is a bit of an RFC still; some
seem like clear groups of code to move out of the way, others
are a bit more gratuitous.  Perhaps after these 300 lines are
moved out of the way, folks who are familiar with the code
can spot other reasonable groupings or functionality which could
also be factored out.

There are still large swaths of random initializations; I though
about "btrfs_initialize_locks_and_stuff()" but decided against it.
:)

Anyway, it builds & passes default xfstests "-g auto" runs, so it
can't be all bad.  Let me know what you think.  Different function
names might be better, better symmetry with close_ctree() might be good,
but it's a start.

Thanks,
-Eric


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

end of thread, other threads:[~2014-08-04 18:53 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-01 23:12 [PATCH 00/12] disk-io.c / open_ctree cleanup & refactoring Eric Sandeen
2014-08-01 23:12 ` [PATCH 01/12] btrfs: remove unused fs_info arg from btrfs_close_extra_devices() Eric Sandeen
2014-08-01 23:12 ` [PATCH 02/12] btrfs: consistently use fs_info in close_ctree() Eric Sandeen
2014-08-01 23:12 ` [PATCH 03/12] btrfs: handle errors from reading the quota tree root Eric Sandeen
2014-08-04 18:35   ` Zach Brown
2014-08-04 18:42     ` Eric Sandeen
2014-08-04 18:51       ` Zach Brown
2014-08-04 18:53         ` Eric Sandeen
2014-08-01 23:12 ` [PATCH 04/12] btrfs: factor btrfs_scrub_init() out of open_ctree() Eric Sandeen
2014-08-01 23:12 ` [PATCH 05/12] btrfs: factor btrfs_balance_init() " Eric Sandeen
2014-08-01 23:12 ` [PATCH 06/12] btrfs: factor btrfs_btree_inode_init() " Eric Sandeen
2014-08-01 23:12 ` [PATCH 07/12] btrfs: factor btrfs_dev_replace_locks_init() " Eric Sandeen
2014-08-01 23:12 ` [PATCH 08/12] btrfs: factor btrfs_qgroup_init() " Eric Sandeen
2014-08-01 23:12 ` [PATCH 09/12] btrfs: factor btrfs_setup_super() " Eric Sandeen
2014-08-01 23:12 ` [PATCH 10/12] btrfs: factor btrfs_alloc_workqueues() " Eric Sandeen
2014-08-01 23:12 ` [PATCH 11/12] btrfs: factor btrfs_read_roots() " Eric Sandeen
2014-08-01 23:12 ` [PATCH 12/12] btrfs: factor btrfs_replay_log() " Eric Sandeen

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