Files
android_kernel_samsung_msm8…/mm
Hugh Dickins 9227997e3b tmpfs: support fallocate FALLOC_FL_PUNCH_HOLE
tmpfs has supported hole-punching since 2.6.16, via
madvise(,,MADV_REMOVE).

But nowadays fallocate(,FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE,,) is
the agreed way to punch holes.

So add shmem_fallocate() to support that, and tweak shmem_truncate_range()
to support partial pages at both the beginning and end of range (never
needed for madvise, which demands rounded addr and rounds up length).

Change-Id: If3817fc74a6fb6da898be7e0bedce729113b6530
Based-on-patch-by: Cong Wang <amwang@redhat.com>
Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Cong Wang <amwang@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-09-23 17:29:08 +02:00
..
2012-01-03 22:54:56 -05:00
…
2019-08-05 14:20:47 +02:00
2019-08-23 13:20:00 +02:00
…
2019-08-05 14:20:47 +02:00
2019-08-08 12:09:23 +02:00
2019-08-23 13:20:00 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2019-08-08 12:26:41 +02:00
2019-08-06 08:16:29 +02:00
2019-08-06 08:17:38 +02:00