]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/lightnvm/pblk.h
lightnvm: pblk: remove target using async. I/Os
[linux.git] / drivers / lightnvm / pblk.h
index cdad2c9edbdf86dcf8099d09d529d2ecf247f293..bf5b73fb345f1bdc9846375fb1b578f6ece38cf5 100644 (file)
@@ -111,6 +111,13 @@ struct pblk_g_ctx {
        void *private;
 };
 
+/* Pad context */
+struct pblk_pad_rq {
+       struct pblk *pblk;
+       struct completion wait;
+       struct kref ref;
+};
+
 /* Recovery context */
 struct pblk_rec_ctx {
        struct pblk *pblk;
@@ -674,6 +681,7 @@ void pblk_rb_sync_end(struct pblk_rb *rb, unsigned long *flags);
 unsigned int pblk_rb_sync_point_count(struct pblk_rb *rb);
 
 unsigned int pblk_rb_read_count(struct pblk_rb *rb);
+unsigned int pblk_rb_sync_count(struct pblk_rb *rb);
 unsigned int pblk_rb_wrap_pos(struct pblk_rb *rb, unsigned int pos);
 
 int pblk_rb_tear_down_check(struct pblk_rb *rb);