From: Josef Bacik Date: Tue, 5 Apr 2011 23:25:36 +0000 (-0400) Subject: Btrfs: do not call btrfs_update_inode in endio if nothing changed X-Git-Tag: v2.6.39-rc4~5^2~9^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ef30be142d2cc60e2687ef267de864cf31be995;p=pandora-kernel.git Btrfs: do not call btrfs_update_inode in endio if nothing changed In the DIO code we often don't update the i_disk_size because the i_size isn't updated until after the DIO is completed, so basically we are allocating a path, doing a search, and updating the inode item for no reason since nothing changed. btrfs_ordered_update_i_size will return 1 if it didn't update i_disk_size, so only run btrfs_update_inode if btrfs_ordered_update_i_size returns 0. Thanks, Signed-off-by: Josef Bacik --- Reading git-diff-tree failed