]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd930b616406f7c379108c867f7d76da3a012a325
tree7621f631bc39b92decaab53ca0fcd2f43b4ab072
parent21cf967c8dd240b8bfe5e656ac37fb0ec1d3872e
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