]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: convert to the new truncate sequence
authorJosef Bacik <josef@redhat.com>
Mon, 31 Jan 2011 20:30:16 +0000 (15:30 -0500)
committerJosef Bacik <josef@redhat.com>
Thu, 17 Mar 2011 18:21:22 +0000 (14:21 -0400)
commit6b7cc1dca5b37988984c3c307abe2de51541f2a3
treef18d97b7feb5c3dcf0d3c1a670d4eaf6b94e8b79
parentcdb7090d6cdfd2b9df1d38276e74d0522464cb5b
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 <josef@redhat.com>
fs/btrfs/ctree.h
fs/btrfs/file.c
fs/btrfs/inode.c