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
4ca8b41e
Commit
4ca8b41e
authored
Aug 05, 2008
by
Chris Mason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Avoid calling into the FS for the final iput on fake root inodes
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
7ea394f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+1
-0
fs/btrfs/inode.c
fs/btrfs/inode.c
+3
-0
No files found.
fs/btrfs/disk-io.c
View file @
4ca8b41e
...
...
@@ -1739,6 +1739,7 @@ int close_ctree(struct btrfs_root *root)
free_extent_buffer
(
root
->
fs_info
->
dev_root
->
node
);
btrfs_free_block_groups
(
root
->
fs_info
);
fs_info
->
closing
=
2
;
del_fs_roots
(
fs_info
);
filemap_write_and_wait
(
fs_info
->
btree_inode
->
i_mapping
);
...
...
fs/btrfs/inode.c
View file @
4ca8b41e
...
...
@@ -2092,6 +2092,9 @@ int btrfs_write_inode(struct inode *inode, int wait)
struct
btrfs_trans_handle
*
trans
;
int
ret
=
0
;
if
(
root
->
fs_info
->
closing
>
1
)
return
0
;
if
(
wait
)
{
trans
=
btrfs_join_transaction
(
root
,
1
);
btrfs_set_trans_block_group
(
trans
,
inode
);
...
...
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