On Fri, Sep 06, 2019 at 10:15:31AM -0700, Mark Fasheh wrote: > From: Mark Fasheh <mfas...@suse.de> > > No functional changes are made here, we simply move the backref cache out of > relocation.c and into it's own file, backref-cache.c. We also add the > headers relocation.h and backref-cache.h. > > Signed-off-by: Mark Fasheh <mfas...@suse.de> > --- > fs/btrfs/Makefile | 2 +- > fs/btrfs/backref-cache.c | 883 ++++++++++++++++++++++++++++++++ > fs/btrfs/backref-cache.h | 113 +++++ > fs/btrfs/relocation.c | 1027 +------------------------------------- > fs/btrfs/relocation.h | 85 ++++ > 5 files changed, 1090 insertions(+), 1020 deletions(-) > create mode 100644 fs/btrfs/backref-cache.c > create mode 100644 fs/btrfs/backref-cache.h > create mode 100644 fs/btrfs/relocation.h > > diff --git a/fs/btrfs/Makefile b/fs/btrfs/Makefile > index 76a843198bcb..197eed65e051 100644 > --- a/fs/btrfs/Makefile > +++ b/fs/btrfs/Makefile > @@ -11,7 +11,7 @@ btrfs-y += super.o ctree.o extent-tree.o print-tree.o > root-tree.o dir-item.o \ > compression.o delayed-ref.o relocation.o delayed-inode.o scrub.o \ > reada.o backref.o ulist.o qgroup.o send.o dev-replace.o raid56.o \ > uuid-tree.o props.o free-space-tree.o tree-checker.o space-info.o \ > - block-rsv.o delalloc-space.o > + block-rsv.o delalloc-space.o backref-cache.o > > btrfs-$(CONFIG_BTRFS_FS_POSIX_ACL) += acl.o > btrfs-$(CONFIG_BTRFS_FS_CHECK_INTEGRITY) += check-integrity.o > diff --git a/fs/btrfs/backref-cache.c b/fs/btrfs/backref-cache.c > new file mode 100644 > index 000000000000..d0f6530f23b8 > --- /dev/null > +++ b/fs/btrfs/backref-cache.c > @@ -0,0 +1,883 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (C) 2009 Oracle. All rights reserved. > + */
We don't need the (c) headers since the SPDX tags have been established, so I've removed it. Otherwise, I fixed some whitespace damage and took the opportunity to update comments and other minor coding style in the +part of the code.