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
nexedi
linux
Commits
df2ce34c
Commit
df2ce34c
authored
Mar 23, 2007
by
Chris Mason
Committed by
David Woodhouse
Mar 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: properly set new buffers for new blocks up to date
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
d5719762
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+7
-2
fs/btrfs/extent-tree.c
fs/btrfs/extent-tree.c
+1
-1
fs/btrfs/super.c
fs/btrfs/super.c
+3
-0
No files found.
fs/btrfs/disk-io.c
View file @
df2ce34c
...
...
@@ -10,8 +10,13 @@ static int check_tree_block(struct btrfs_root *root, struct buffer_head *buf)
if
(
buf
->
b_blocknr
!=
btrfs_header_blocknr
(
&
node
->
header
))
BUG
();
if
(
root
->
node
&&
btrfs_header_parentid
(
&
node
->
header
)
!=
btrfs_header_parentid
(
btrfs_buffer_header
(
root
->
node
)))
BUG
();
btrfs_header_parentid
(
btrfs_buffer_header
(
root
->
node
)))
{
printk
(
"block %Lu parentids don't match buf %Lu, root %Lu
\n
"
,
buf
->
b_blocknr
,
btrfs_header_parentid
(
&
node
->
header
),
btrfs_header_parentid
(
btrfs_buffer_header
(
root
->
node
)));
WARN_ON
(
1
);
}
return
0
;
}
...
...
fs/btrfs/extent-tree.c
View file @
df2ce34c
...
...
@@ -467,7 +467,7 @@ struct buffer_head *btrfs_alloc_free_block(struct btrfs_trans_handle *trans,
return
NULL
;
}
buf
=
find_tree_block
(
root
,
ins
.
objectid
);
dirty_tree_block
(
trans
,
root
,
buf
);
set_buffer_uptodate
(
buf
);
return
buf
;
}
...
...
fs/btrfs/super.c
View file @
df2ce34c
...
...
@@ -473,7 +473,10 @@ static int btrfs_sync_fs(struct super_block *sb, int wait)
struct
btrfs_trans_handle
*
trans
;
struct
btrfs_root
*
root
;
int
ret
;
sb
->
s_dirt
=
0
;
return
0
;
root
=
btrfs_sb
(
sb
);
trans
=
btrfs_start_transaction
(
root
,
1
);
ret
=
btrfs_commit_transaction
(
trans
,
root
);
...
...
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