From: Liu Bo Date: Tue, 5 Nov 2013 03:45:53 +0000 (+0800) Subject: Btrfs: avoid heavy operations in btrfs_commit_super X-Git-Tag: v3.13-rc1~13^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d52c1bcc647ca41ee563bc38d8231e5f3816112c;p=pandora-kernel.git Btrfs: avoid heavy operations in btrfs_commit_super The 'git blame' history shows that, the old transaction commit code has to do twice to ensure roots are updated and we have to flush metadata and super block manually, however, right now all of these can be handled well inside the transaction commit code without extra efforts. And the error handling part remains same with the current code, -- 'return to caller once we get error'. This saves us a transaction commit and a flush of super block, which are both heavy operations according to ftrace output analysis. Signed-off-by: Liu Bo Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed