request.h (6054c6d4da1940c7bf8870c6393773aa794f53d8) request.h (220bb38c21b83e2f7b842f33220bf727093eca89)
1#ifndef _BCACHE_REQUEST_H_
2#define _BCACHE_REQUEST_H_
3
4#include <linux/cgroup.h>
5
1#ifndef _BCACHE_REQUEST_H_
2#define _BCACHE_REQUEST_H_
3
4#include <linux/cgroup.h>
5
6struct search {
7 /* Stack frame for bio_complete */
6struct data_insert_op {
8 struct closure cl;
7 struct closure cl;
9 struct closure btree;
10
11 struct bcache_device *d;
12 struct cache_set *c;
13 struct task_struct *task;
8 struct cache_set *c;
9 struct task_struct *task;
10 struct bio *bio;
14
11
15 struct bbio bio;
16 struct bio *orig_bio;
17 struct bio *cache_miss;
18
19 /* Bio to be inserted into the cache */
20 struct bio *cache_bio;
21 unsigned cache_bio_sectors;
22
23 unsigned inode;
12 unsigned inode;
13 uint16_t write_prio;
14 short error;
24
15
25 unsigned recoverable:1;
26 unsigned unaligned_bvec:1;
27
28 unsigned write:1;
29 unsigned writeback:1;
30
31 unsigned csum:1;
32 unsigned bypass:1;
16 unsigned bypass:1;
17 unsigned writeback:1;
33 unsigned flush_journal:1;
18 unsigned flush_journal:1;
19 unsigned csum:1;
34
20
35 unsigned insert_data_done:1;
36 unsigned replace:1;
21 unsigned replace:1;
37 unsigned insert_collision:1;
22 unsigned replace_collision:1;
38
23
39 uint16_t write_prio;
24 unsigned insert_data_done:1;
40
25
41 /* IO error returned to s->bio */
42 short error;
43 unsigned long start_time;
44
45 struct btree_op op;
46
47 /* Anything past this point won't get zeroed in search_alloc() */
48 struct keylist insert_keys;
49 BKEY_PADDED(replace_key);
50};
51
52unsigned bch_get_congested(struct cache_set *);
53void bch_data_insert(struct closure *cl);
54

--- 25 unchanged lines hidden ---
26 /* Anything past this point won't get zeroed in search_alloc() */
27 struct keylist insert_keys;
28 BKEY_PADDED(replace_key);
29};
30
31unsigned bch_get_congested(struct cache_set *);
32void bch_data_insert(struct closure *cl);
33

--- 25 unchanged lines hidden ---