tmpfs: ZERO_RANGE and COLLAPSE_RANGE not currently supported
authorHugh Dickins <hughd@google.com>
Mon, 23 Jun 2014 20:22:03 +0000 (13:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jun 2014 19:17:37 +0000 (15:17 -0400)
commit264b86651c0986b4cf3b1e3ff48449d7afbaf0d5
tree616b9f6cc981b3e720d114f6d2f519aeed91f124
parentfaff2e120db87ccf375d54c840c6bca6260bc569
tmpfs: ZERO_RANGE and COLLAPSE_RANGE not currently supported

commit 13ace4d0d9db40e10ecd66dfda14e297571be813 upstream.

I was well aware of FALLOC_FL_ZERO_RANGE and FALLOC_FL_COLLAPSE_RANGE
support being added to fallocate(); but didn't realize until now that I
had been too stupid to future-proof shmem_fallocate() against new
additions.  -EOPNOTSUPP instead of going on to ordinary fallocation.

Signed-off-by: Hugh Dickins <hughd@google.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/shmem.c