summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2017-09-07 19:22:22 +0200
committerDavid Sterba <dsterba@suse.com>2017-10-30 12:27:59 +0100
commit736cd52e0c720103f52ab9da47b6cc3af6b083f6 (patch)
treeb9918e4c713f73d43d6d702d48099ce241e41829 /fs/btrfs/ctree.h
parentBtrfs: do not make defrag wait on async_delalloc_pages (diff)
downloadlinux-736cd52e0c720103f52ab9da47b6cc3af6b083f6.tar.xz
linux-736cd52e0c720103f52ab9da47b6cc3af6b083f6.zip
Btrfs: remove nr_async_submits and async_submit_draining
Now that we have the combo of flushing twice, which can make sure IO have started since the second flush will wait for page lock which won't be unlocked unless setting page writeback and queuing ordered extents, we don't need %async_submit_draining, %async_delalloc_pages and %nr_async_submits to tell whether the IO has actually started. Moreover, all the flushers in use are followed by functions that wait for ordered extents to complete, so %nr_async_submits, which tracks whether bio's async submit has made progress, doesn't really make sense. However, %async_delalloc_pages is still required by shrink_delalloc() as that function doesn't flush twice in the normal case (just issues a writeback with WB_REASON_FS_FREE_SPACE). Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index bc1b6a033700..7995666af959 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -878,8 +878,6 @@ struct btrfs_fs_info {
rwlock_t tree_mod_log_lock;
struct rb_root tree_mod_log;
- atomic_t nr_async_submits;
- atomic_t async_submit_draining;
atomic_t async_delalloc_pages;
atomic_t open_ioctl_trans;