]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitefc827f7cc367518c6e186406fa40a56351f3c6d
treefebe05ec1937ec44f2d3aecb916e8ee53e2a9585
parent02f96c479b3762358d43803f06565c9508b7e007
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