Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
d10c5f31
Commit
d10c5f31
authored
Dec 17, 2007
by
Chris Mason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Fix extent_map and extent_state leaks by flushing lrus on FS unmount
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
be20aa9d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+10
-0
No files found.
fs/btrfs/disk-io.c
View file @
d10c5f31
...
...
@@ -765,8 +765,18 @@ int close_ctree(struct btrfs_root *root)
btrfs_free_block_groups
(
root
->
fs_info
);
del_fs_roots
(
fs_info
);
filemap_write_and_wait
(
fs_info
->
btree_inode
->
i_mapping
);
extent_map_tree_empty_lru
(
&
fs_info
->
free_space_cache
);
extent_map_tree_empty_lru
(
&
fs_info
->
block_group_cache
);
extent_map_tree_empty_lru
(
&
fs_info
->
pinned_extents
);
extent_map_tree_empty_lru
(
&
fs_info
->
pending_del
);
extent_map_tree_empty_lru
(
&
fs_info
->
extent_ins
);
extent_map_tree_empty_lru
(
&
BTRFS_I
(
fs_info
->
btree_inode
)
->
extent_tree
);
truncate_inode_pages
(
fs_info
->
btree_inode
->
i_mapping
,
0
);
iput
(
fs_info
->
btree_inode
);
#if 0
while(!list_empty(&fs_info->hashers)) {
...
...
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