From: Filipe Manana Date: Thu, 29 May 2014 22:31:39 +0000 (+0100) Subject: Btrfs: fix transaction leak during fsync call X-Git-Tag: omap-for-v3.16/fixes-against-rc1~54^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b05fd8742f6291b67571ad0fdad4da6b6eb98025;p=pandora-kernel.git Btrfs: fix transaction leak during fsync call If btrfs_log_dentry_safe() returns an error, we set ret to 1 and fall through with the goal of committing the transaction. However, in the case where the inode doesn't need a full sync, we would call btrfs_wait_ordered_range() against the target range for our inode, and if it returned an error, we would return without commiting or ending the transaction. Signed-off-by: Filipe David Borba Manana Signed-off-by: Chris Mason --- Reading git-diff-tree failed