]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: replace EINVAL with ERANGE for resize when ULLONG_MAX
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Thu, 29 May 2014 01:19:58 +0000 (09:19 +0800)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:21:07 +0000 (17:21 -0700)
commiteee5553cef13a4f3a38b3fe4a7debfb9282ce440
tree50aec3bffcc19ab3ddfe66448eb3a03333460692
parent549256902c9e74b047b3bea7cbd2b56515307a90
btrfs: replace EINVAL with ERANGE for resize when ULLONG_MAX

To be accurate about the error case,
if the new size is beyond ULLONG_MAX, return ERANGE instead of EINVAL.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ioctl.c