From: Josef Bacik Date: Mon, 31 Jan 2011 20:30:16 +0000 (-0500) Subject: Btrfs: convert to the new truncate sequence X-Git-Tag: v2.6.39-rc1~19^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a41ad394a03b802497958d7c98a9dcf607266645;p=pandora-kernel.git Btrfs: convert to the new truncate sequence ->truncate() is going away, instead all of the work needs to be done in ->setattr(). So this converts us over to do this. It's fairly straightforward, just get rid of our .truncate inode operation and call btrfs_truncate() directly from btrfs_setsize. This works out better for us since truncate can technically return ENOSPC, and before we had no way of letting anybody know. Thanks, Signed-off-by: Josef Bacik --- Reading git-diff-tree failed