On Thu, May 24, 2018 at 02:41:27PM -0700, Omar Sandoval wrote: > From: Omar Sandoval <osandov@xxxxxx> > > btrfs_ioctl_rm_dev() and btrfs_ioctl_rm_dev_v2() both manipulate this > bit. Let's move it into the common btrfs_rm_device(), which also makes > the following change to deal with swap files easier. I'd rather keep it in both places as it's clear where the EXCL_OP context starts in the ioctl handlers, not in some helper function.