Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4cb13156
Commit
4cb13156
authored
Oct 02, 2018
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: extent_ptr_decoded
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
deb3318b
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
17 deletions
+17
-17
fs/bcachefs/btree_io.c
fs/bcachefs/btree_io.c
+1
-1
fs/bcachefs/btree_io.h
fs/bcachefs/btree_io.h
+1
-1
fs/bcachefs/debug.c
fs/bcachefs/debug.c
+1
-1
fs/bcachefs/extents.c
fs/bcachefs/extents.c
+4
-4
fs/bcachefs/extents.h
fs/bcachefs/extents.h
+2
-2
fs/bcachefs/extents_types.h
fs/bcachefs/extents_types.h
+2
-2
fs/bcachefs/io.c
fs/bcachefs/io.c
+4
-4
fs/bcachefs/io.h
fs/bcachefs/io.h
+1
-1
fs/bcachefs/io_types.h
fs/bcachefs/io_types.h
+1
-1
No files found.
fs/bcachefs/btree_io.c
View file @
4cb13156
...
...
@@ -1407,7 +1407,7 @@ static void btree_node_read_endio(struct bio *bio)
void
bch2_btree_node_read
(
struct
bch_fs
*
c
,
struct
btree
*
b
,
bool
sync
)
{
struct
extent_p
ick_ptr
pick
;
struct
extent_p
tr_decoded
pick
;
struct
btree_read_bio
*
rb
;
struct
bch_dev
*
ca
;
struct
bio
*
bio
;
...
...
fs/bcachefs/btree_io.h
View file @
4cb13156
...
...
@@ -15,7 +15,7 @@ struct btree_read_bio {
struct
bch_fs
*
c
;
u64
start_time
;
unsigned
have_ioref
:
1
;
struct
extent_p
ick_ptr
pick
;
struct
extent_p
tr_decoded
pick
;
struct
work_struct
work
;
struct
bio
bio
;
};
...
...
fs/bcachefs/debug.c
View file @
4cb13156
...
...
@@ -36,7 +36,7 @@ void __bch2_btree_verify(struct bch_fs *c, struct btree *b)
struct
btree
*
v
=
c
->
verify_data
;
struct
btree_node
*
n_ondisk
,
*
n_sorted
,
*
n_inmemory
;
struct
bset
*
sorted
,
*
inmemory
;
struct
extent_p
ick_ptr
pick
;
struct
extent_p
tr_decoded
pick
;
struct
bch_dev
*
ca
;
struct
bio
*
bio
;
...
...
fs/bcachefs/extents.c
View file @
4cb13156
...
...
@@ -603,7 +603,7 @@ static inline bool dev_latency_better(struct bch_fs *c,
static
int
extent_pick_read_device
(
struct
bch_fs
*
c
,
struct
bkey_s_c_extent
e
,
struct
bch_devs_mask
*
avoid
,
struct
extent_p
ick_ptr
*
pick
)
struct
extent_p
tr_decoded
*
pick
)
{
const
struct
bch_extent_ptr
*
ptr
;
struct
bch_extent_crc_unpacked
crc
;
...
...
@@ -622,7 +622,7 @@ static int extent_pick_read_device(struct bch_fs *c,
if
(
ret
&&
!
dev_latency_better
(
c
,
ptr
,
&
pick
->
ptr
))
continue
;
*
pick
=
(
struct
extent_p
ick_ptr
)
{
*
pick
=
(
struct
extent_p
tr_decoded
)
{
.
ptr
=
*
ptr
,
.
crc
=
crc
,
};
...
...
@@ -753,7 +753,7 @@ int bch2_btree_ptr_to_text(struct bch_fs *c, char *buf,
int
bch2_btree_pick_ptr
(
struct
bch_fs
*
c
,
const
struct
btree
*
b
,
struct
bch_devs_mask
*
avoid
,
struct
extent_p
ick_ptr
*
pick
)
struct
extent_p
tr_decoded
*
pick
)
{
return
extent_pick_read_device
(
c
,
bkey_i_to_s_c_extent
(
&
b
->
key
),
avoid
,
pick
);
...
...
@@ -1958,7 +1958,7 @@ void bch2_extent_mark_replicas_cached(struct bch_fs *c,
*/
int
bch2_extent_pick_ptr
(
struct
bch_fs
*
c
,
struct
bkey_s_c
k
,
struct
bch_devs_mask
*
avoid
,
struct
extent_p
ick_ptr
*
pick
)
struct
extent_p
tr_decoded
*
pick
)
{
int
ret
;
...
...
fs/bcachefs/extents.h
View file @
4cb13156
...
...
@@ -55,11 +55,11 @@ struct btree_nr_keys bch2_extent_sort_fix_overlapping(struct bch_fs *c,
int
bch2_btree_pick_ptr
(
struct
bch_fs
*
,
const
struct
btree
*
,
struct
bch_devs_mask
*
avoid
,
struct
extent_p
ick_ptr
*
);
struct
extent_p
tr_decoded
*
);
int
bch2_extent_pick_ptr
(
struct
bch_fs
*
,
struct
bkey_s_c
,
struct
bch_devs_mask
*
,
struct
extent_p
ick_ptr
*
);
struct
extent_p
tr_decoded
*
);
void
bch2_extent_trim_atomic
(
struct
bkey_i
*
,
struct
btree_iter
*
);
...
...
fs/bcachefs/extents_types.h
View file @
4cb13156
...
...
@@ -19,9 +19,9 @@ struct bch_extent_crc_unpacked {
struct
bch_csum
csum
;
};
struct
extent_pick_ptr
{
struct
bch_extent_ptr
ptr
;
struct
extent_ptr_decoded
{
struct
bch_extent_crc_unpacked
crc
;
struct
bch_extent_ptr
ptr
;
};
#endif
/* _BCACHEFS_EXTENTS_TYPES_H */
fs/bcachefs/io.c
View file @
4cb13156
...
...
@@ -1026,7 +1026,7 @@ static void promote_start(struct promote_op *op, struct bch_read_bio *rbio)
noinline
static
struct
promote_op
*
__promote_alloc
(
struct
bch_fs
*
c
,
struct
bpos
pos
,
struct
extent_p
ick_ptr
*
pick
,
struct
extent_p
tr_decoded
*
pick
,
struct
bch_io_opts
opts
,
unsigned
rbio_sectors
,
struct
bch_read_bio
**
rbio
)
...
...
@@ -1104,7 +1104,7 @@ static struct promote_op *__promote_alloc(struct bch_fs *c,
static
inline
struct
promote_op
*
promote_alloc
(
struct
bch_fs
*
c
,
struct
bvec_iter
iter
,
struct
bkey_s_c
k
,
struct
extent_p
ick_ptr
*
pick
,
struct
extent_p
tr_decoded
*
pick
,
struct
bch_io_opts
opts
,
unsigned
flags
,
struct
bch_read_bio
**
rbio
,
...
...
@@ -1411,7 +1411,7 @@ static void bch2_rbio_narrow_crcs(struct bch_read_bio *rbio)
}
static
bool
should_narrow_crcs
(
struct
bkey_s_c
k
,
struct
extent_p
ick_ptr
*
pick
,
struct
extent_p
tr_decoded
*
pick
,
unsigned
flags
)
{
return
!
(
flags
&
BCH_READ_IN_RETRY
)
&&
...
...
@@ -1566,7 +1566,7 @@ int __bch2_read_extent(struct bch_fs *c, struct bch_read_bio *orig,
struct
bvec_iter
iter
,
struct
bkey_s_c
k
,
struct
bch_devs_mask
*
avoid
,
unsigned
flags
)
{
struct
extent_p
ick_ptr
pick
;
struct
extent_p
tr_decoded
pick
;
struct
bch_read_bio
*
rbio
=
NULL
;
struct
bch_dev
*
ca
;
struct
promote_op
*
promote
=
NULL
;
...
...
fs/bcachefs/io.h
View file @
4cb13156
...
...
@@ -99,7 +99,7 @@ static inline struct bch_write_bio *wbio_init(struct bio *bio)
struct
bch_devs_mask
;
struct
cache_promote_op
;
struct
extent_p
ick_ptr
;
struct
extent_p
tr_decoded
;
int
__bch2_read_extent
(
struct
bch_fs
*
,
struct
bch_read_bio
*
,
struct
bvec_iter
,
struct
bkey_s_c
,
struct
bch_devs_mask
*
,
unsigned
);
...
...
fs/bcachefs/io_types.h
View file @
4cb13156
...
...
@@ -55,7 +55,7 @@ struct bch_read_bio {
struct
bch_devs_list
devs_have
;
struct
extent_p
ick_ptr
pick
;
struct
extent_p
tr_decoded
pick
;
/* start pos of data we read (may not be pos of data we want) */
struct
bpos
pos
;
struct
bversion
version
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment