btrfs: use GFP_KERNEL in btrfs_defrag_file
authorDavid Sterba <dsterba@suse.com>
Thu, 22 Jun 2017 01:13:02 +0000 (03:13 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:03 +0000 (16:12 +0200)
commit63e727ecd238be2281156f2f0d5d7ad593d14ee8
treefebe05ec1937ec44f2d3aecb916e8ee53e2a9585
parent3ec836211183eee87609f832a949dfe711af2b5a
btrfs: use GFP_KERNEL in btrfs_defrag_file

We can safely use GFP_KERNEL, the function is called from two contexts:

- ioctl handler, called directly, no locks taken
- cleaner thread, running all queued defrag work, outside of any locks

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c