linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Josef Bacik <josef@toxicpanda.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 0/4] btrfs: move random block rsv code around
Date: Wed, 19 Jun 2019 15:11:57 -0400	[thread overview]
Message-ID: <20190619191201.16689-1-josef@toxicpanda.com> (raw)

We have some specialized block rsvs, like the inode rsv and the delayed refs
rsv, that have their own special oddities.  These don't fit in extent-tree.c, so
migrate them to different places.  Most of them go to existing files, but the
delalloc stuff gets its own file because it's a lot of code, and inode.c and
file.c are relatively large already.

This depends on the previous two chunks of migrations.  These are relatively
small and straightforward since all of the functions were exported already as
they are used throughout the entire codebase.  The diffstat is as follows

 fs/btrfs/Makefile           |   2 +-
 fs/btrfs/ctree.h            |  24 --
 fs/btrfs/delalloc-space.c   | 497 ++++++++++++++++++++++++++++++
 fs/btrfs/delalloc-space.h   |  25 ++
 fs/btrfs/delayed-ref.c      | 177 +++++++++++
 fs/btrfs/delayed-ref.h      |  10 +
 fs/btrfs/extent-tree.c      | 733 +-------------------------------------------
 fs/btrfs/file.c             |   1 +
 fs/btrfs/free-space-cache.c |   1 +
 fs/btrfs/inode-map.c        |   1 +
 fs/btrfs/inode.c            |   1 +
 fs/btrfs/ioctl.c            |   1 +
 fs/btrfs/ordered-data.c     |   1 +
 fs/btrfs/relocation.c       |   1 +
 fs/btrfs/root-tree.c        |  56 ++++
 fs/btrfs/transaction.c      |  18 ++
 fs/btrfs/transaction.h      |   1 +
 17 files changed, 793 insertions(+), 757 deletions(-)

Thanks,

Josef

             reply	other threads:[~2019-06-19 19:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-19 19:11 Josef Bacik [this message]
2019-06-19 19:11 ` [PATCH 1/4] btrfs: migrate the delayed refs rsv code Josef Bacik
2019-06-19 19:11 ` [PATCH 2/4] btrfs: migrate btrfs_trans_release_chunk_metadata Josef Bacik
2019-06-19 19:12 ` [PATCH 3/4] btrfs: migrate the delalloc space stuff to it's own home Josef Bacik
2019-06-19 19:12 ` [PATCH 4/4] btrfs: move the subvolume reservation stuff out of extent-tree.c 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=20190619191201.16689-1-josef@toxicpanda.com \
    --to=josef@toxicpanda.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).