Linux bcachefs list
 help / color / mirror / Atom feed
* Are reflinks always O(n)?
@ 2022-06-30  5:00 Demi Marie Obenour
  2022-07-04 14:56 ` Kent Overstreet
  0 siblings, 1 reply; 3+ messages in thread
From: Demi Marie Obenour @ 2022-06-30  5:00 UTC (permalink / raw)
  To: linux-bcachefs

[-- Attachment #1: Type: text/plain, Size: 618 bytes --]

In bcachefs, is creating a reflink O(n) in the size of the file, or in
the number of currently unshared extents that need to be moved into the
reflink btree?  The former would be annoying, but the latter is
proportional to the number of modifications to the file since it was
last reflinked, which is fine for my use-case so long as unlinking a
heavily reflinked file is also fast.  My reading of “bcachefs:
Principles of Operation” suggests the latter.

Basically, if a file is already reflinked, is reflinking it *again*
cheap?
-- 
Sincerely,
Demi Marie Obenour (she/her/hers)
Invisible Things Lab

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-04 16:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-30  5:00 Are reflinks always O(n)? Demi Marie Obenour
2022-07-04 14:56 ` Kent Overstreet
2022-07-04 16:03   ` Demi Marie Obenour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox