diff options
author | 2020-03-22 11:35:33 -0700 | |
---|---|---|
committer | 2020-03-22 11:35:33 -0700 | |
commit | 67d584e33e54c3f33c8541928aa7115388c97433 (patch) | |
tree | 1eaa36ba218afa5365879c77213593ea3c781efb /fs/btrfs/inode.c | |
parent | Merge branch 'akpm' (patches from Andrew) (diff) | |
parent | btrfs: fix removal of raid[56|1c34} incompat flags after removing block group (diff) | |
download | linux-dev-67d584e33e54c3f33c8541928aa7115388c97433.tar.xz linux-dev-67d584e33e54c3f33c8541928aa7115388c97433.zip |
Merge tag 'for-5.6-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs fixes from David Sterba:
"Two fixes.
The first is a regression: when dropping some incompat bits the
conditions were reversed. The other is a fix for rename whiteout
potentially leaving stack memory linked to a list"
* tag 'for-5.6-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
btrfs: fix removal of raid[56|1c34} incompat flags after removing block group
btrfs: fix log context list corruption after rename whiteout error
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 27076ebadb36..d267eb5caa7b 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -9496,6 +9496,10 @@ out_fail: ret = btrfs_sync_log(trans, BTRFS_I(old_inode)->root, &ctx); if (ret) commit_transaction = true; + } else if (sync_log) { + mutex_lock(&root->log_mutex); + list_del(&ctx.list); + mutex_unlock(&root->log_mutex); } if (commit_transaction) { ret = btrfs_commit_transaction(trans); |