Btrfs: apply updated fallocate i_size fix
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 4 Feb 2010 16:33:03 +0000 (11:33 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:20:12 +0000 (13:20 -0700)
commitb5763c0f3bb1ca5ca64d2b72d07e8b42ab624ab0
tree87eb37bd63a747f23cc7ee858da81d47d8373412
parent8fde9c08a05eeec46081864307877d361fdbaafa
Btrfs: apply updated fallocate i_size fix

commit 23b5c50945f2294add0137799400329c0ebba290 upstream.

This version of the i_size fix for fallocate makes sure we only update
the i_size when the current fallocate is really operating outside of
i_size.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/btrfs/inode.c