diff options
| author | Filipe Manana <[email protected]> | 2024-08-02 08:38:51 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-08-02 20:32:40 +0000 |
| commit | e0391e92f9ab4fb3dbdeb139c967dcfa7ac4b115 (patch) | |
| tree | 422de414be47ecb4f421f3aac3a9cc572a47a656 /fs/btrfs/print-tree.c | |
| parent | btrfs: emit a warning about space cache v1 being deprecated (diff) | |
| download | kernel-e0391e92f9ab4fb3dbdeb139c967dcfa7ac4b115.tar.gz kernel-e0391e92f9ab4fb3dbdeb139c967dcfa7ac4b115.zip | |
btrfs: fix double inode unlock for direct IO sync writes
If we do a direct IO sync write, at btrfs_sync_file(), and we need to skip
inode logging or we get an error starting a transaction or an error when
flushing delalloc, we end up unlocking the inode when we shouldn't under
the 'out_release_extents' label, and then unlock it again at
btrfs_direct_write().
Fix that by checking if we have to skip inode unlocking under that label.
Reported-by: [email protected]
Link: https://lore.kernel.org/linux-btrfs/[email protected]/
Fixes: 939b656bc8ab ("btrfs: fix corruption after buffer fault in during direct IO append write")
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/print-tree.c')
0 files changed, 0 insertions, 0 deletions
