]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/buckets.c
Update bcachefs sources to 386f00b639 bcachefs: Snapshot creation, deletion
[bcachefs-tools-debian] / libbcachefs / buckets.c
index df12416eff8ecb041c67b8e64574a4fc901d8264..5fd3aabb76692b45b74f2d317bbb951f9aa3939b 100644 (file)
@@ -16,6 +16,7 @@
 #include "movinggc.h"
 #include "reflink.h"
 #include "replicas.h"
+#include "subvolume.h"
 
 #include <linux/preempt.h>
 #include <trace/events/bcachefs.h>
@@ -1200,6 +1201,8 @@ static int bch2_mark_key_locked(struct bch_fs *c,
                return bch2_mark_reservation(c, old, new, journal_seq, flags);
        case KEY_TYPE_reflink_p:
                return bch2_mark_reflink_p(c, old, new, journal_seq, flags);
+       case KEY_TYPE_snapshot:
+               return bch2_mark_snapshot(c, old, new, journal_seq, flags);
        default:
                return 0;
        }