Thread (46 messages) 46 messages, 5 authors, 2018-09-12

Re: [PATCH 11/15] btrfs-progs: Add delayed refs infrastructure

From: David Sterba <hidden>
Date: 2018-08-02 14:08:36

On Mon, Jul 30, 2018 at 05:34:54PM +0900, Misono Tomohiro wrote:
to correctly count num_entries.
(I noticed that num_entries went to negative value when I'm running gdb)

However, num_entries is actually not used in progs at all (it is used for
throttling in kernel), so maybe we can just drop the variable from progs?
The long-term goal is to use the same source for kernel and progs where
possible and where it does not cause trouble. We can add stubs for
spinlocks, atomics etc and could live with a few variables that are not
used in progs.

Right now I'm ok with both ways, ie. when it's easier to take the kernel
code as-is and add stubs, or drop the unused bits now when porting to
progs.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help