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
93a6925e
Commit
93a6925e
authored
Sep 14, 2007
by
Chris Mason
Committed by
David Woodhouse
Sep 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Fix extra link count dec in rename
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
3de3f774
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
fs/btrfs/inode.c
fs/btrfs/inode.c
+0
-7
No files found.
fs/btrfs/inode.c
View file @
93a6925e
...
...
@@ -2214,13 +2214,6 @@ static int btrfs_rename(struct inode * old_dir, struct dentry *old_dentry,
ret
=
btrfs_unlink_trans
(
trans
,
root
,
new_dir
,
new_dentry
);
if
(
ret
)
goto
out_fail
;
if
(
S_ISDIR
(
new_inode
->
i_mode
))
clear_nlink
(
new_inode
);
else
drop_nlink
(
new_inode
);
ret
=
btrfs_update_inode
(
trans
,
root
,
new_inode
);
if
(
ret
)
goto
out_fail
;
}
ret
=
btrfs_add_link
(
trans
,
new_dentry
,
old_inode
);
if
(
ret
)
...
...
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