]> git.baikalelectronics.ru Git - 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)
commit681eece4cd021fd5d85637d0e67b7eae45292f8e
treed98573473d916eecbeb949d45f8ac9b530440080
parent32e02f6210e1914e38f37f0d512e47b44f8c1bf9
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