From: Qu Wenruo Date: Tue, 20 Jan 2015 09:05:33 +0000 (+0800) Subject: btrfs: Fix the bug that fs_info->pending_changes is never cleared. X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~238^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c9fe14f9d64cc12401a825a60ec5c5723496ca4;p=pandora-kernel.git btrfs: Fix the bug that fs_info->pending_changes is never cleared. Fs_info->pending_changes is never cleared since the original code uses cmpxchg(&fs_info->pending_changes, 0, 0), which will only clear it if pending_changes is already 0. This will cause a lot of problem when mount it with inode_cache mount option. If the btrfs is mounted as inode_cache, pending_changes will always be 1, even when the fs is frozen. Signed-off-by: Qu Wenruo Reviewed-by: David Sterba Signed-off-by: David Sterba Signed-off-by: Chris Mason --- Reading git-diff-tree failed