Skip to content
Commit 9998eb70 authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: fix reservations in btrfs_page_mkwrite



Josef fixed btrfs_page_mkwrite to properly release reserved
extents if there was an error.  But if we fail to get a reservation
and we fail to dirty the inode (for ENOSPC reasons), we'll end up
trying to release a reservation we never had.

This makes sure we only release if we were able to reserve.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 9b230628
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment