projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96485e4
)
ext4: fix double locking in ext4_fc_commit_dentry_updates()
author
Harshad Shirwadkar
<harshadshirwadkar@gmail.com>
Fri, 23 Oct 2020 16:13:39 +0000
(09:13 -0700)
committer
Theodore Ts'o
<tytso@mit.edu>
Wed, 28 Oct 2020 17:41:16 +0000
(13:41 -0400)
Fixed double locking of sbi->s_fc_lock in the above function
as reported by kernel-test-robot.
Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Link:
https://lore.kernel.org/r/20201023161339.1449437-1-harshadshirwadkar@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/fast_commit.c
patch
|
blob
|
history
diff --git
a/fs/ext4/fast_commit.c
b/fs/ext4/fast_commit.c
index 447c8d93f48081c11ed85e6076df2617af4f20c0..1d72f8f13a05c19563717b2c285d83cf8a1ba701 100644
(file)
--- a/
fs/ext4/fast_commit.c
+++ b/
fs/ext4/fast_commit.c
@@
-964,7
+964,6
@@
static int ext4_fc_commit_dentry_updates(journal_t *journal, u32 *crc)
fc_dentry->fcd_parent, fc_dentry->fcd_ino,
fc_dentry->fcd_name.len,
fc_dentry->fcd_name.name, crc)) {
- spin_lock(&sbi->s_fc_lock);
ret = -ENOSPC;
goto lock_and_exit;
}