]> git.proxmox.com Git - mirror_ubuntu-kernels.git/log
mirror_ubuntu-kernels.git
13 months agobcachefs: Various improvements to bch2_alloc_write()
Kent Overstreet [Wed, 17 Apr 2019 22:14:46 +0000 (18:14 -0400)]
bcachefs: Various improvements to bch2_alloc_write()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: bch2_trans_mark_update()
Kent Overstreet [Mon, 11 Mar 2019 18:59:58 +0000 (14:59 -0400)]
bcachefs: bch2_trans_mark_update()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: btree_bkey_cached_common
Kent Overstreet [Sat, 6 Jun 2020 16:28:01 +0000 (12:28 -0400)]
bcachefs: btree_bkey_cached_common

This is prep work for the btree key cache: btree iterators will point to
either struct btree, or a new struct bkey_cached.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Write out fs usage consistently
Kent Overstreet [Mon, 11 Feb 2019 00:34:47 +0000 (19:34 -0500)]
bcachefs: Write out fs usage consistently

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Avoid write lock on mark_lock
Kent Overstreet [Thu, 3 Dec 2020 19:17:33 +0000 (14:17 -0500)]
bcachefs: Avoid write lock on mark_lock

mark_lock is a frequently taken lock, and there's also potential for
deadlocks since currently bch2_clear_page_bits which is called from
memory reclaim has to take it to drop disk reservations.

The disk reservation get path takes it when it recalculates the number
of sectors known to be available, but it's not really needed for
consistency.  We just want to make sure we only have one thread updating
the sectors_available count, which we can do with a dedicated mutex.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Fix a bug with multiple iterators being traversed
Kent Overstreet [Tue, 14 May 2019 17:25:25 +0000 (13:25 -0400)]
bcachefs: Fix a bug with multiple iterators being traversed

If upgrade fails on one iterator, but it was copied from another
iterator and will be freed before transaction restart, then the original
iterator will get traversed first, so we need to make required btree
nodes on the original iterator will be traversed too.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: fix bch2_rbio_narrow_crcs()
Kent Overstreet [Wed, 15 May 2019 16:24:39 +0000 (12:24 -0400)]
bcachefs: fix bch2_rbio_narrow_crcs()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Fix journal shutdown path
Kent Overstreet [Fri, 10 May 2019 15:58:00 +0000 (11:58 -0400)]
bcachefs: Fix journal shutdown path

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Fix fsync error reporting
Kent Overstreet [Thu, 18 Apr 2019 00:34:24 +0000 (20:34 -0400)]
bcachefs: Fix fsync error reporting

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: bch2_bkey_ptrs_invalid()
Kent Overstreet [Sat, 11 May 2019 21:32:07 +0000 (17:32 -0400)]
bcachefs: bch2_bkey_ptrs_invalid()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Don't hardcode BTREE_ID_EXTENTS
Kent Overstreet [Sat, 11 May 2019 21:29:20 +0000 (17:29 -0400)]
bcachefs: Don't hardcode BTREE_ID_EXTENTS

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: fix bch2_flags_to_text()
Kent Overstreet [Mon, 29 Apr 2019 19:16:18 +0000 (15:16 -0400)]
bcachefs: fix bch2_flags_to_text()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Add actual tracepoints for transaction restarts
Kent Overstreet [Tue, 23 Apr 2019 04:10:08 +0000 (00:10 -0400)]
bcachefs: Add actual tracepoints for transaction restarts

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: copy correct journal_seq to dir in create
Kent Overstreet [Thu, 18 Apr 2019 00:10:43 +0000 (20:10 -0400)]
bcachefs: copy correct journal_seq to dir in create

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Return errors from for_each_btree_key()
Kent Overstreet [Wed, 17 Apr 2019 19:49:28 +0000 (15:49 -0400)]
bcachefs: Return errors from for_each_btree_key()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: fix triggers for stripes btree
Kent Overstreet [Wed, 17 Apr 2019 19:49:45 +0000 (15:49 -0400)]
bcachefs: fix triggers for stripes btree

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: use same timesource as current_time()
Kent Overstreet [Tue, 16 Apr 2019 20:03:31 +0000 (16:03 -0400)]
bcachefs: use same timesource as current_time()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Fix hang while shutting down
Kent Overstreet [Tue, 16 Apr 2019 19:13:16 +0000 (15:13 -0400)]
bcachefs: Fix hang while shutting down

If the allocator thread exited before bch2_dev_allocator_stop() was
called (because of an error), bch2_dev_allocator_quiesce() could hang.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: lockdep fix when going rw from bch2_alloc_write()
Kent Overstreet [Tue, 16 Apr 2019 18:42:05 +0000 (14:42 -0400)]
bcachefs: lockdep fix when going rw from bch2_alloc_write()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Mark overwrites from journal replay in initial gc
Kent Overstreet [Mon, 15 Apr 2019 18:58:00 +0000 (14:58 -0400)]
bcachefs: Mark overwrites from journal replay in initial gc

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Deduplicate keys in the journal before replay
Kent Overstreet [Fri, 12 Apr 2019 02:39:39 +0000 (22:39 -0400)]
bcachefs: Deduplicate keys in the journal before replay

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Journal replay refactoring
Kent Overstreet [Fri, 12 Apr 2019 02:39:39 +0000 (22:39 -0400)]
bcachefs: Journal replay refactoring

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: cmp_int()
Kent Overstreet [Fri, 12 Apr 2019 08:54:12 +0000 (04:54 -0400)]
bcachefs: cmp_int()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Pass flags arg to bch2_alloc_write()
Kent Overstreet [Sat, 6 Apr 2019 19:12:21 +0000 (15:12 -0400)]
bcachefs: Pass flags arg to bch2_alloc_write()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: allocate sb_read_scratch with __get_free_page
Kent Overstreet [Sat, 6 Apr 2019 18:32:06 +0000 (14:32 -0400)]
bcachefs: allocate sb_read_scratch with __get_free_page

kmalloc allocations aren't guranteed alignment for io

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: delete duplicated code
Kent Overstreet [Fri, 5 Apr 2019 04:20:02 +0000 (00:20 -0400)]
bcachefs: delete duplicated code

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: disallow ever going rw if nochanges or noreplay
Kent Overstreet [Fri, 5 Apr 2019 04:18:52 +0000 (00:18 -0400)]
bcachefs: disallow ever going rw if nochanges or noreplay

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: initial gc no longer needs to touch every node
Kent Overstreet [Fri, 5 Apr 2019 03:01:54 +0000 (23:01 -0400)]
bcachefs: initial gc no longer needs to touch every node

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Rewrite journal_seq_blacklist machinery
Kent Overstreet [Fri, 5 Apr 2019 01:53:12 +0000 (21:53 -0400)]
bcachefs: Rewrite journal_seq_blacklist machinery

Now, we store blacklisted journal sequence numbers in the superblock,
not the journal: this helps to greatly simplify the code, and more
importantly it's now implemented in a way that doesn't require all btree
nodes to be visited before starting the journal - instead, we
unconditionally blacklist the next 4 journal sequence numbers after an
unclean shutdown.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: don't lose errors from iterators that have been freed
Kent Overstreet [Fri, 5 Apr 2019 01:28:16 +0000 (21:28 -0400)]
bcachefs: don't lose errors from iterators that have been freed

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: free trans->mem on commit
Kent Overstreet [Wed, 3 Apr 2019 21:11:15 +0000 (17:11 -0400)]
bcachefs: free trans->mem on commit

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: add ability to run gc on metadata only
Kent Overstreet [Sat, 30 Mar 2019 02:22:45 +0000 (22:22 -0400)]
bcachefs: add ability to run gc on metadata only

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Convert gc errors to fsck errors
Kent Overstreet [Thu, 28 Mar 2019 07:13:27 +0000 (03:13 -0400)]
bcachefs: Convert gc errors to fsck errors

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: ratelimit copygc warning
Kent Overstreet [Thu, 4 Apr 2019 00:38:37 +0000 (20:38 -0400)]
bcachefs: ratelimit copygc warning

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: minor fsck fix
Kent Overstreet [Sun, 31 Mar 2019 23:23:34 +0000 (19:23 -0400)]
bcachefs: minor fsck fix

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Fsck locking improvements
Kent Overstreet [Sun, 31 Mar 2019 21:37:30 +0000 (17:37 -0400)]
bcachefs: Fsck locking improvements

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Caller now responsible for calling mark_key for gc
Kent Overstreet [Fri, 29 Mar 2019 23:49:17 +0000 (19:49 -0400)]
bcachefs: Caller now responsible for calling mark_key for gc

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Refactor bch2_fs_recovery()
Kent Overstreet [Fri, 29 Mar 2019 23:13:54 +0000 (19:13 -0400)]
bcachefs: Refactor bch2_fs_recovery()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: fix bch2_trans_unlock()
Kent Overstreet [Sun, 31 Mar 2019 22:40:01 +0000 (18:40 -0400)]
bcachefs: fix bch2_trans_unlock()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: add missing bch2_btree_iter_node_drop() call
Kent Overstreet [Fri, 29 Mar 2019 18:42:34 +0000 (14:42 -0400)]
bcachefs: add missing bch2_btree_iter_node_drop() call

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: allow journal reply on ro mount
Kent Overstreet [Fri, 29 Mar 2019 18:29:47 +0000 (14:29 -0400)]
bcachefs: allow journal reply on ro mount

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: make sure to use BTREE_INSERT_LAZY_RW in fsck
Kent Overstreet [Fri, 29 Mar 2019 18:34:10 +0000 (14:34 -0400)]
bcachefs: make sure to use BTREE_INSERT_LAZY_RW in fsck

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Track whether filesystem has errors in superblock
Kent Overstreet [Thu, 28 Mar 2019 13:34:55 +0000 (09:34 -0400)]
bcachefs: Track whether filesystem has errors in superblock

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: (invalidate|release)_folio fixes
Kent Overstreet [Sun, 25 Dec 2022 03:45:11 +0000 (22:45 -0500)]
bcachefs: (invalidate|release)_folio fixes

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Assorted preemption fixes
Kent Overstreet [Sun, 25 Dec 2022 03:44:56 +0000 (22:44 -0500)]
bcachefs: Assorted preemption fixes

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Write out alloc info more carefully
Kent Overstreet [Thu, 28 Mar 2019 07:40:39 +0000 (03:40 -0400)]
bcachefs: Write out alloc info more carefully

In flight btree updates could update alloc info until they're flushed -
so we have to try writing again after they've been flushed.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: fix initial gc
Kent Overstreet [Thu, 28 Mar 2019 08:49:05 +0000 (04:49 -0400)]
bcachefs: fix initial gc

Buckets weren't being marked as dirty

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Handle fsck errors at runtime better
Kent Overstreet [Thu, 28 Mar 2019 07:28:59 +0000 (03:28 -0400)]
bcachefs: Handle fsck errors at runtime better

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: simplify gc locking a bit
Kent Overstreet [Thu, 28 Mar 2019 07:08:40 +0000 (03:08 -0400)]
bcachefs: simplify gc locking a bit

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: move some checks to expensive_debug_checks
Kent Overstreet [Thu, 28 Mar 2019 05:51:47 +0000 (01:51 -0400)]
bcachefs: move some checks to expensive_debug_checks

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Sort updates in bch2_trans_update()
Kent Overstreet [Thu, 28 Mar 2019 04:34:25 +0000 (00:34 -0400)]
bcachefs: Sort updates in bch2_trans_update()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Unlink not-touched iters on successful transaction commit
Kent Overstreet [Thu, 28 Mar 2019 04:32:38 +0000 (00:32 -0400)]
bcachefs: Unlink not-touched iters on successful transaction commit

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: traverse all iterators on transaction restart
Kent Overstreet [Thu, 28 Mar 2019 04:07:24 +0000 (00:07 -0400)]
bcachefs: traverse all iterators on transaction restart

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Add iter->idx
Kent Overstreet [Thu, 28 Mar 2019 03:14:38 +0000 (23:14 -0400)]
bcachefs: Add iter->idx

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Kill btree_iter->next
Kent Overstreet [Thu, 28 Mar 2019 02:46:52 +0000 (22:46 -0400)]
bcachefs: Kill btree_iter->next

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Change btree_iter_traverse_error() to not use iter->next
Kent Overstreet [Thu, 28 Mar 2019 02:54:42 +0000 (22:54 -0400)]
bcachefs: Change btree_iter_traverse_error() to not use iter->next

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: trans_for_each_iter()
Kent Overstreet [Thu, 28 Mar 2019 02:03:30 +0000 (22:03 -0400)]
bcachefs: trans_for_each_iter()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Better bch2_trans_copy_iter()
Kent Overstreet [Tue, 26 Mar 2019 02:43:26 +0000 (22:43 -0400)]
bcachefs: Better bch2_trans_copy_iter()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Btree iterators now always have a btree_trans
Kent Overstreet [Mon, 25 Mar 2019 21:06:42 +0000 (17:06 -0400)]
bcachefs: Btree iterators now always have a btree_trans

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Only get btree iters from btree transactions
Kent Overstreet [Mon, 25 Mar 2019 19:10:15 +0000 (15:10 -0400)]
bcachefs: Only get btree iters from btree transactions

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Btree iter improvements
Kent Overstreet [Mon, 25 Mar 2019 19:34:48 +0000 (15:34 -0400)]
bcachefs: Btree iter improvements

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Verify fs hasn't been modified before going rw
Kent Overstreet [Fri, 22 Mar 2019 03:13:46 +0000 (23:13 -0400)]
bcachefs: Verify fs hasn't been modified before going rw

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Go rw lazily
Kent Overstreet [Fri, 22 Mar 2019 02:19:57 +0000 (22:19 -0400)]
bcachefs: Go rw lazily

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Fix a deadlock
Kent Overstreet [Fri, 22 Mar 2019 08:32:29 +0000 (04:32 -0400)]
bcachefs: Fix a deadlock

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Rework error handling in btree update path
Kent Overstreet [Fri, 22 Mar 2019 01:12:01 +0000 (21:12 -0400)]
bcachefs: Rework error handling in btree update path

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Fix error handling in gc
Kent Overstreet [Thu, 21 Mar 2019 23:12:52 +0000 (19:12 -0400)]
bcachefs: Fix error handling in gc

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: More debug params for testing of recovery paths
Kent Overstreet [Thu, 21 Mar 2019 23:03:57 +0000 (19:03 -0400)]
bcachefs: More debug params for testing of recovery paths

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Run gc if failed to read alloc btree
Kent Overstreet [Thu, 21 Mar 2019 23:02:48 +0000 (19:02 -0400)]
bcachefs: Run gc if failed to read alloc btree

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Fix error handling in bch2_fs_recovery()
Kent Overstreet [Thu, 21 Mar 2019 21:04:50 +0000 (17:04 -0400)]
bcachefs: Fix error handling in bch2_fs_recovery()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Add time stats for btree updates
Kent Overstreet [Thu, 21 Mar 2019 20:28:57 +0000 (16:28 -0400)]
bcachefs: Add time stats for btree updates

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: BTREE_INSERT_ATOMIC must be used for extents now
Kent Overstreet [Mon, 18 Mar 2019 20:18:39 +0000 (16:18 -0400)]
bcachefs: BTREE_INSERT_ATOMIC must be used for extents now

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Add more time stats for being blocked on allocator
Kent Overstreet [Mon, 18 Mar 2019 17:42:10 +0000 (13:42 -0400)]
bcachefs: Add more time stats for being blocked on allocator

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Fix a deadlock
Kent Overstreet [Sun, 17 Mar 2019 20:49:59 +0000 (16:49 -0400)]
bcachefs: Fix a deadlock

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Allocate fs_usage in do_btree_insert_at()
Kent Overstreet [Fri, 15 Mar 2019 22:20:46 +0000 (18:20 -0400)]
bcachefs: Allocate fs_usage in do_btree_insert_at()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Btree update path cleanup
Kent Overstreet [Fri, 15 Mar 2019 21:11:58 +0000 (17:11 -0400)]
bcachefs: Btree update path cleanup

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: kill struct btree_insert
Kent Overstreet [Thu, 14 Mar 2019 02:44:04 +0000 (22:44 -0400)]
bcachefs: kill struct btree_insert

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: convert bch2_btree_insert_at() usage to bch2_trans_commit()
Kent Overstreet [Thu, 14 Mar 2019 00:49:16 +0000 (20:49 -0400)]
bcachefs: convert bch2_btree_insert_at() usage to bch2_trans_commit()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: drop btree_insert->did_work
Kent Overstreet [Mon, 11 Mar 2019 20:25:42 +0000 (16:25 -0400)]
bcachefs: drop btree_insert->did_work

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Refactor extent insert path
Kent Overstreet [Sat, 16 Mar 2019 18:27:40 +0000 (14:27 -0400)]
bcachefs: Refactor extent insert path

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Always use bch2_extent_trim_atomic()
Kent Overstreet [Sat, 16 Mar 2019 18:27:40 +0000 (14:27 -0400)]
bcachefs: Always use bch2_extent_trim_atomic()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: fix bch2_mark_bkey_replicas() call
Kent Overstreet [Fri, 15 Mar 2019 23:34:16 +0000 (19:34 -0400)]
bcachefs: fix bch2_mark_bkey_replicas() call

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: fix bch2_invalidate_one_bucket2() during journal replay
Kent Overstreet [Wed, 13 Mar 2019 20:56:48 +0000 (16:56 -0400)]
bcachefs: fix bch2_invalidate_one_bucket2() during journal replay

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Make deferred inode updates a mount option
Kent Overstreet [Wed, 13 Mar 2019 17:31:02 +0000 (13:31 -0400)]
bcachefs: Make deferred inode updates a mount option

Journal reclaim may still need performance tuning

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Fix for shutting down before fs started marking it clean
Kent Overstreet [Sat, 9 Mar 2019 19:53:03 +0000 (14:53 -0500)]
bcachefs: Fix for shutting down before fs started marking it clean

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Fix for when compressed extent is split during journal replay
Kent Overstreet [Fri, 8 Mar 2019 22:20:33 +0000 (17:20 -0500)]
bcachefs: Fix for when compressed extent is split during journal replay

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: increase BTREE_ITER_MAX
Kent Overstreet [Fri, 8 Mar 2019 04:13:39 +0000 (23:13 -0500)]
bcachefs: increase BTREE_ITER_MAX

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: fix a faulty assertion
Kent Overstreet [Fri, 8 Mar 2019 04:14:35 +0000 (23:14 -0500)]
bcachefs: fix a faulty assertion

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: assertion to catch outstanding bug
Kent Overstreet [Fri, 8 Mar 2019 00:45:57 +0000 (19:45 -0500)]
bcachefs: assertion to catch outstanding bug

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: minor journal reclaim fixes
Kent Overstreet [Thu, 7 Mar 2019 22:19:04 +0000 (17:19 -0500)]
bcachefs: minor journal reclaim fixes

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Don't BUG_ON() on bucket sector count overflow
Kent Overstreet [Thu, 7 Mar 2019 21:33:56 +0000 (16:33 -0500)]
bcachefs: Don't BUG_ON() on bucket sector count overflow

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Remove direct use of bch2_btree_iter_link()
Kent Overstreet [Mon, 4 Mar 2019 22:54:28 +0000 (17:54 -0500)]
bcachefs: Remove direct use of bch2_btree_iter_link()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Use deferred btree updates for inode updates
Kent Overstreet [Sat, 21 Jul 2018 02:27:07 +0000 (22:27 -0400)]
bcachefs: Use deferred btree updates for inode updates

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Use journal preres for deferred btree updates
Kent Overstreet [Tue, 19 Feb 2019 22:56:21 +0000 (17:56 -0500)]
bcachefs: Use journal preres for deferred btree updates

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Add a pre-reserve mechanism for the journal
Kent Overstreet [Tue, 19 Feb 2019 18:41:36 +0000 (13:41 -0500)]
bcachefs: Add a pre-reserve mechanism for the journal

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Don't block on reclaim_lock from journal_res_get
Kent Overstreet [Thu, 28 Feb 2019 19:22:52 +0000 (14:22 -0500)]
bcachefs: Don't block on reclaim_lock from journal_res_get

When we're doing btree updates from journal flush, this becomes a
locking inversion

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: bch2_journal_space_available improvements
Kent Overstreet [Sun, 3 Mar 2019 21:50:40 +0000 (16:50 -0500)]
bcachefs: bch2_journal_space_available improvements

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Separate discards from rest of journal reclaim
Kent Overstreet [Sun, 3 Mar 2019 23:39:07 +0000 (18:39 -0500)]
bcachefs: Separate discards from rest of journal reclaim

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: ja->discard_idx, ja->dirty_idx
Kent Overstreet [Sun, 3 Mar 2019 20:15:55 +0000 (15:15 -0500)]
bcachefs: ja->discard_idx, ja->dirty_idx

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Allocator startup fixes/refactoring
Kent Overstreet [Fri, 1 Mar 2019 22:21:44 +0000 (17:21 -0500)]
bcachefs: Allocator startup fixes/refactoring

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 months agobcachefs: Drop a faulty assertion
Kent Overstreet [Fri, 1 Mar 2019 20:51:57 +0000 (15:51 -0500)]
bcachefs: Drop a faulty assertion

the assertion was meant to check that bch2_journal_reclaim_fast() was
always being called, but since the atomic dec can happen outside of
j->lock the assertion itself can race

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>