diff options
author | Jeff Mahoney <jeffm@suse.com> | 2017-06-28 23:56:54 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-08-16 08:19:53 -0400 |
commit | 9a35b63728ceb8602c111260044451dd64952500 (patch) | |
tree | 21f2b2442af1795c04aa1340cd81f94382767374 /fs/btrfs/async-thread.c | |
parent | 1cbb1f454e5321e47fc1e6b233066c7ccc979d15 (diff) |
btrfs: constify tracepoint arguments
Tracepoint arguments are all read-only. If we mark the arguments
as const, we're able to keep or convert those arguments to const
where appropriate.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/async-thread.c')
-rw-r--r-- | fs/btrfs/async-thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c index ff0b0be92d61..e00c8a9fd5bb 100644 --- a/fs/btrfs/async-thread.c +++ b/fs/btrfs/async-thread.c | |||
@@ -75,18 +75,18 @@ void btrfs_##name(struct work_struct *arg) \ | |||
75 | } | 75 | } |
76 | 76 | ||
77 | struct btrfs_fs_info * | 77 | struct btrfs_fs_info * |
78 | btrfs_workqueue_owner(struct __btrfs_workqueue *wq) | 78 | btrfs_workqueue_owner(const struct __btrfs_workqueue *wq) |
79 | { | 79 | { |
80 | return wq->fs_info; | 80 | return wq->fs_info; |
81 | } | 81 | } |
82 | 82 | ||
83 | struct btrfs_fs_info * | 83 | struct btrfs_fs_info * |
84 | btrfs_work_owner(struct btrfs_work *work) | 84 | btrfs_work_owner(const struct btrfs_work *work) |
85 | { | 85 | { |
86 | return work->wq->fs_info; | 86 | return work->wq->fs_info; |
87 | } | 87 | } |
88 | 88 | ||
89 | bool btrfs_workqueue_normal_congested(struct btrfs_workqueue *wq) | 89 | bool btrfs_workqueue_normal_congested(const struct btrfs_workqueue *wq) |
90 | { | 90 | { |
91 | /* | 91 | /* |
92 | * We could compare wq->normal->pending with num_online_cpus() | 92 | * We could compare wq->normal->pending with num_online_cpus() |