]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
Btrfs: make sure new inode size is ok in fallocate
authorJosef Bacik <josef@redhat.com>
Mon, 22 Nov 2010 18:55:39 +0000 (18:55 +0000)
committerChris Mason <chris.mason@oracle.com>
Sat, 27 Nov 2010 18:00:07 +0000 (13:00 -0500)
commit0ed42a63f3edb144b091d9528401fce95c3c4d8d
treed98573473d916eecbeb949d45f8ac9b530440080
parent55a61d1d06a3dc443d0db8aaa613365dcb83b98a
Btrfs: make sure new inode size is ok in fallocate

We have been failing xfstest 228 forever, because we don't check to make sure
the new inode size is acceptable as far as RLIMIT is concerned.  Just check to
make sure it's ok to create a inode with this new size and error out if not.
With this patch we now pass 228.

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c