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
4db8c528
Commit
4db8c528
authored
Dec 03, 2015
by
David Sterba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btrfs: remove a trivial helper btrfs_set_buffer_uptodate
Signed-off-by:
David Sterba
<
dsterba@suse.com
>
parent
30424601
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
9 deletions
+3
-9
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+0
-5
fs/btrfs/disk-io.h
fs/btrfs/disk-io.h
+0
-1
fs/btrfs/extent-tree.c
fs/btrfs/extent-tree.c
+1
-1
fs/btrfs/volumes.c
fs/btrfs/volumes.c
+2
-2
No files found.
fs/btrfs/disk-io.c
View file @
4db8c528
...
@@ -3902,11 +3902,6 @@ int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid,
...
@@ -3902,11 +3902,6 @@ int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid,
return
!
ret
;
return
!
ret
;
}
}
int
btrfs_set_buffer_uptodate
(
struct
extent_buffer
*
buf
)
{
return
set_extent_buffer_uptodate
(
buf
);
}
void
btrfs_mark_buffer_dirty
(
struct
extent_buffer
*
buf
)
void
btrfs_mark_buffer_dirty
(
struct
extent_buffer
*
buf
)
{
{
struct
btrfs_root
*
root
;
struct
btrfs_root
*
root
;
...
...
fs/btrfs/disk-io.h
View file @
4db8c528
...
@@ -116,7 +116,6 @@ static inline void btrfs_put_fs_root(struct btrfs_root *root)
...
@@ -116,7 +116,6 @@ static inline void btrfs_put_fs_root(struct btrfs_root *root)
void
btrfs_mark_buffer_dirty
(
struct
extent_buffer
*
buf
);
void
btrfs_mark_buffer_dirty
(
struct
extent_buffer
*
buf
);
int
btrfs_buffer_uptodate
(
struct
extent_buffer
*
buf
,
u64
parent_transid
,
int
btrfs_buffer_uptodate
(
struct
extent_buffer
*
buf
,
u64
parent_transid
,
int
atomic
);
int
atomic
);
int
btrfs_set_buffer_uptodate
(
struct
extent_buffer
*
buf
);
int
btrfs_read_buffer
(
struct
extent_buffer
*
buf
,
u64
parent_transid
);
int
btrfs_read_buffer
(
struct
extent_buffer
*
buf
,
u64
parent_transid
);
u32
btrfs_csum_data
(
char
*
data
,
u32
seed
,
size_t
len
);
u32
btrfs_csum_data
(
char
*
data
,
u32
seed
,
size_t
len
);
void
btrfs_csum_final
(
u32
crc
,
char
*
result
);
void
btrfs_csum_final
(
u32
crc
,
char
*
result
);
...
...
fs/btrfs/extent-tree.c
View file @
4db8c528
...
@@ -7831,7 +7831,7 @@ btrfs_init_new_buffer(struct btrfs_trans_handle *trans, struct btrfs_root *root,
...
@@ -7831,7 +7831,7 @@ btrfs_init_new_buffer(struct btrfs_trans_handle *trans, struct btrfs_root *root,
clear_bit
(
EXTENT_BUFFER_STALE
,
&
buf
->
bflags
);
clear_bit
(
EXTENT_BUFFER_STALE
,
&
buf
->
bflags
);
btrfs_set_lock_blocking
(
buf
);
btrfs_set_lock_blocking
(
buf
);
btrfs_se
t_buffer_uptodate
(
buf
);
set_exten
t_buffer_uptodate
(
buf
);
if
(
root
->
root_key
.
objectid
==
BTRFS_TREE_LOG_OBJECTID
)
{
if
(
root
->
root_key
.
objectid
==
BTRFS_TREE_LOG_OBJECTID
)
{
buf
->
log_index
=
root
->
log_transid
%
2
;
buf
->
log_index
=
root
->
log_transid
%
2
;
...
...
fs/btrfs/volumes.c
View file @
4db8c528
...
@@ -6468,11 +6468,11 @@ int btrfs_read_sys_array(struct btrfs_root *root)
...
@@ -6468,11 +6468,11 @@ int btrfs_read_sys_array(struct btrfs_root *root)
sb
=
btrfs_find_create_tree_block
(
root
,
BTRFS_SUPER_INFO_OFFSET
);
sb
=
btrfs_find_create_tree_block
(
root
,
BTRFS_SUPER_INFO_OFFSET
);
if
(
!
sb
)
if
(
!
sb
)
return
-
ENOMEM
;
return
-
ENOMEM
;
btrfs_se
t_buffer_uptodate
(
sb
);
set_exten
t_buffer_uptodate
(
sb
);
btrfs_set_buffer_lockdep_class
(
root
->
root_key
.
objectid
,
sb
,
0
);
btrfs_set_buffer_lockdep_class
(
root
->
root_key
.
objectid
,
sb
,
0
);
/*
/*
* The sb extent buffer is artifical and just used to read the system array.
* The sb extent buffer is artifical and just used to read the system array.
*
btrfs_se
t_buffer_uptodate() call does not properly mark all it's
*
set_exten
t_buffer_uptodate() call does not properly mark all it's
* pages up-to-date when the page is larger: extent does not cover the
* pages up-to-date when the page is larger: extent does not cover the
* whole page and consequently check_page_uptodate does not find all
* whole page and consequently check_page_uptodate does not find all
* the page's extents up-to-date (the hole beyond sb),
* the page's extents up-to-date (the hole beyond sb),
...
...
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