btrfs: Unexport and rename btrfs_invalidate_inodes
authorNikolay Borisov <nborisov@suse.com>
Fri, 27 Apr 2018 11:36:24 +0000 (14:36 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:23:10 +0000 (18:23 +0200)
commit20a68004022d5b894efdf5959ebd538b8e91ec73
tree3ae1f1fc3feeee3df54cab85835205959467d15e
parent093258e6ebaf178bb25da514f0d1f744968cc900
btrfs: Unexport and rename btrfs_invalidate_inodes

This function is no longer used outside of inode.c so just make it
static. At the same time give a more becoming name, since it's not
really invalidating the inodes but just calling d_prune_alias. Last,
but not least - move the function above the sole caller to avoid
introducing yet-another-pointless forward declaration.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/inode.c