Btrfs: only add orphan items when truncating
authorJosef Bacik <josef@redhat.com>
Fri, 4 Mar 2011 19:37:08 +0000 (14:37 -0500)
committerJosef Bacik <josef@redhat.com>
Thu, 17 Mar 2011 18:21:30 +0000 (14:21 -0400)
commitf0cd846e9221811d87047f1428cf5226e7236efe
tree7621f631bc39b92decaab53ca0fcd2f43b4ab072
parentded5db9de78f963979e1605f859de67626f54693
Btrfs: only add orphan items when truncating

We don't need an orphan item when expanding files, we just need them for
truncating them, so only add the orphan item in btrfs_truncate instead of in
btrfs_setsize.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/inode.c