diff options
author | Peter Zijlstra <peterz@infradead.org> | 2018-03-15 06:43:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-03-20 03:23:20 -0400 |
commit | 4625956a4ec20c623acbbb0c6d60fcb388387ba8 (patch) | |
tree | c638c39970488e58ace62d8d3b9d5aa73a70485e /fs/btrfs/ioctl.c | |
parent | ab1fbe32477619b99921a203d16de9e66526b22a (diff) |
sched/wait, fs/btrfs: Convert wait_on_atomic_t() usage to the new wait_var_event() API
The old wait_on_atomic_t() is going to get removed, use the more
flexible wait_var_event() API instead.
No change in functionality.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: David Sterba <dsterba@suse.com>
Cc: Chris Mason <clm@fb.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 111ee282b777..3278ae592a2c 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -723,7 +723,7 @@ fail: | |||
723 | btrfs_subvolume_release_metadata(fs_info, &pending_snapshot->block_rsv); | 723 | btrfs_subvolume_release_metadata(fs_info, &pending_snapshot->block_rsv); |
724 | dec_and_free: | 724 | dec_and_free: |
725 | if (atomic_dec_and_test(&root->will_be_snapshotted)) | 725 | if (atomic_dec_and_test(&root->will_be_snapshotted)) |
726 | wake_up_atomic_t(&root->will_be_snapshotted); | 726 | wake_up_var(&root->will_be_snapshotted); |
727 | free_pending: | 727 | free_pending: |
728 | kfree(pending_snapshot->root_item); | 728 | kfree(pending_snapshot->root_item); |
729 | btrfs_free_path(pending_snapshot->path); | 729 | btrfs_free_path(pending_snapshot->path); |