Skip to contentSkip to conversation

bcachefs - a new COW filesystem

PATCH Applied Kent Overstreet 30 participants 186 messages May 9, 2023 – Nov 4, 2023 Page 2 of 2

Subsystems (28)
lore
Share & tools
lore
author maintainer
#180 lore raw

PATCH 31/32 lib: add mean and variance module.

In reply to Kent Overstreet

From: Daniel Hill <[email protected]>

This module provides a fast 64bit implementation of basic statistics functions, including mean, variance and standard deviation in both weighted and unweighted variants, the unweighted variant has a 32bit limitation per sample to prevent overflow when squaring.

---
 MAINTAINERS                       |   9 ++
 include/linux/mean_and_variance.h | 219 ++++++++++++++++++++++++++++++
 lib/Kconfig.debug                 |   9 ++
 lib/math/Kconfig                  |   3 +
 lib/math/Makefile                 |   2 +
 lib/math/mean_and_variance.c      | 136 +++++++++++++++++++
 lib/math/mean_and_variance_test.c | 155 +++++++++++++++++++++
 7 files changed, 533 insertions(+)
 create mode 100644 include/linux/mean_and_variance.h
 create mode 100644 lib/math/mean_and_variance.c
 create mode 100644 lib/math/mean_and_variance_test.c
MAINTAINERS +9 -0
index c550f5909e..dbf3c33c31 100644
@@ -12767,6 +12767,15 @@ F:	Documentation/devicetree/bindings/net/ieee802154/mcr20a.txt
 F:	drivers/net/ieee802154/mcr20a.c
 F:	drivers/net/ieee802154/mcr20a.h
 
+MEAN AND VARIANCE LIBRARY
+M:	Daniel B. Hill <[email protected]>
+M:	Kent Overstreet <[email protected]>
+S:	Maintained
+T:	git https://github.com/YellowOnion/linux/
+F:	include/linux/mean_and_variance.h
+F:	lib/math/mean_and_variance.c
+F:	lib/math/mean_and_variance_test.c
+
 MEASUREMENT COMPUTING CIO-DAC IIO DRIVER
 M:	William Breathitt Gray <[email protected]>
 L:	[email protected]
include/linux/mean_and_variance.h new file +219 -0

219 lines not on this page · raw message

lib/Kconfig.debug +9 -0
index 3dba7a9aff..9ca88e0027 100644
@@ -2101,6 +2101,15 @@ config CPUMASK_KUNIT_TEST
 
 	  If unsure, say N.
 
+config MEAN_AND_VARIANCE_UNIT_TEST
+	tristate "mean_and_variance unit tests" if !KUNIT_ALL_TESTS
+	depends on KUNIT
+	select MEAN_AND_VARIANCE
+	default KUNIT_ALL_TESTS
+	help
+	  This option enables the kunit tests for mean_and_variance module.
+	  If unsure, say N.
+
 config TEST_LIST_SORT
 	tristate "Linked list sorting test" if !KUNIT_ALL_TESTS
 	depends on KUNIT
lib/math/Kconfig +3 -0
index 0634b428d0..7530ae9a35 100644
@@ -15,3 +15,6 @@ config PRIME_NUMBERS
 
 config RATIONAL
 	tristate
+
+config MEAN_AND_VARIANCE
+	tristate
lib/math/Makefile +2 -0
index bfac26ddfc..2ef1487e01 100644
@@ -4,6 +4,8 @@ obj-y += div64.o gcd.o lcm.o int_pow.o int_sqrt.o reciprocal_div.o
 obj-$(CONFIG_CORDIC)		+= cordic.o
 obj-$(CONFIG_PRIME_NUMBERS)	+= prime_numbers.o
 obj-$(CONFIG_RATIONAL)		+= rational.o
+obj-$(CONFIG_MEAN_AND_VARIANCE) += mean_and_variance.o
 
 obj-$(CONFIG_TEST_DIV64)	+= test_div64.o
 obj-$(CONFIG_RATIONAL_KUNIT_TEST) += rational-test.o
+obj-$(CONFIG_MEAN_AND_VARIANCE_UNIT_TEST)   += mean_and_variance_test.o
lib/math/mean_and_variance.c new file +136 -0

136 lines not on this page · raw message

lib/math/mean_and_variance_test.c new file +155 -0

155 lines not on this page · raw message

Signature · 1 line
2.40.1
author maintainer
#181 lore raw

PATCH 32/32 MAINTAINERS: Add entry for bcachefs

In reply to Kent Overstreet

bcachefs is a new copy-on-write filesystem; add a MAINTAINERS entry for it.

---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)
MAINTAINERS +7 -0
index dbf3c33c31..0ac2b432f0 100644
@@ -3509,6 +3509,13 @@ W:	http://bcache.evilpiepirate.org
 C:	irc://irc.oftc.net/bcache
 F:	drivers/md/bcache/
 
+BCACHEFS:
+M:	Kent Overstreet <[email protected]>
+L:	[email protected]
+S:	Supported
+C:	irc://irc.oftc.net/bcache
+F:	fs/bcachefs/
+
 BDISP ST MEDIA DRIVER
 M:	Fabien Dessenne <[email protected]>
 L:	[email protected]
Signature · 1 line
2.40.1
#182 lore raw

Re: [PATCH 32/32] MAINTAINERS: Add entry for bcachefs

Quoted 13 lines · Kent Overstreet

bcachefs is a new copy-on-write filesystem; add a MAINTAINERS entry for it.

---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)
MAINTAINERS +0 -0
index dbf3c33c31..0ac2b432f0 100644

MAINTAINERS W: http://bcache.evilpiepirate.org · line 3512

Quoted 4 lines
MAINTAINERS +1 -0
@@ -3509,6 +3509,13 @@ W:	http://bcache.evilpiepirate.org
 C:	irc://irc.oftc.net/bcache
 F:	drivers/md/bcache/
 
+BCACHEFS:

No colon at the end of the line.

Quoted 9 lines
MAINTAINERS +6 -0
+M:	Kent Overstreet <[email protected]>
+L:	[email protected]
+S:	Supported
+C:	irc://irc.oftc.net/bcache
+F:	fs/bcachefs/
+
 BDISP ST MEDIA DRIVER
 M:	Fabien Dessenne <[email protected]>
 L:	[email protected]
Signature · 1 line
~Randy
author maintainer
#183 lore raw

Re: [PATCH 32/32] MAINTAINERS: Add entry for bcachefs

Quoted 19 lines · Randy Dunlap
Quoted 16 lines · Kent Overstreet

bcachefs is a new copy-on-write filesystem; add a MAINTAINERS entry for it.

---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)
MAINTAINERS +0 -0
index dbf3c33c31..0ac2b432f0 100644
@@ -3509,6 +3509,13 @@ W:	http://bcache.evilpiepirate.org
 C:	irc://irc.oftc.net/bcache
 F:	drivers/md/bcache/
 
Quoted 3 lines

MAINTAINERS W: http://bcache.evilpiepirate.org · line 3512

Quoted 1 line
MAINTAINERS +1 -0
+BCACHEFS:

No colon at the end of the line.

Thanks, updated.

#184 lore raw
In reply to Kent Overstreet

Hi!

Quoted 9 lines

I'm submitting the bcachefs filesystem for review and inclusion.

Included in this patch series are all the non fs/bcachefs/ patches. The entire tree, based on v6.3, may be found at:

http://evilpiepirate.org/git/bcachefs.git bcachefs-for-upstream

----------------------------------------------------------------

Quoted 7 lines

bcachefs overview, status:

Features:
- too many to list

Known bugs:
- too many to list

Documentation: missing.

Dunno. I guess it would help review if feature and known bugs lists were included.

BR,
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
author maintainer
#185 lore raw
Quoted 13 lines · Pavel Machek

Hi!

Quoted 11 lines

I'm submitting the bcachefs filesystem for review and inclusion.

Included in this patch series are all the non fs/bcachefs/ patches. The entire tree, based on v6.3, may be found at:

http://evilpiepirate.org/git/bcachefs.git bcachefs-for-upstream

----------------------------------------------------------------

bcachefs overview, status:

Quoted 8 lines
Quoted 5 lines

Features:
- too many to list

Known bugs:
- too many to list

Documentation: missing.

https://bcachefs.org/bcachefs-principles-of-operation.pdf

Quoted 1 line

Dunno. I guess it would help review if feature and known bugs lists were included.

https://evilpiepirate.org/~testdashboard/ci?branch=bcachefs

https://github.com/koverstreet/bcachefs/issues/

Hope that helps...