<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/drivers/staging/android/ashmem.c, branch v3.5</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>mm/fs: route MADV_REMOVE to FALLOC_FL_PUNCH_HOLE</title>
<updated>2012-05-29T23:22:22+00:00</updated>
<author>
<name>Hugh Dickins</name>
<email>hughd@google.com</email>
</author>
<published>2012-05-29T22:06:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=3f31d07571eeea18a7d34db9af21d2285b807a17'/>
<id>3f31d07571eeea18a7d34db9af21d2285b807a17</id>
<content type='text'>
Now tmpfs supports hole-punching via fallocate(), switch madvise_remove()
to use do_fallocate() instead of vmtruncate_range(): which extends
madvise(,,MADV_REMOVE) support from tmpfs to ext4, ocfs2 and xfs.

There is one more user of vmtruncate_range() in our tree,
staging/android's ashmem_shrink(): convert it to use do_fallocate() too
(but if its unpinned areas are already unmapped - I don't know - then it
would do better to use shmem_truncate_range() directly).

Based-on-patch-by: Cong Wang &lt;amwang@redhat.com&gt;
Signed-off-by: Hugh Dickins &lt;hughd@google.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Cc: Colin Cross &lt;ccross@android.com&gt;
Cc: John Stultz &lt;john.stultz@linaro.org&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@linux-foundation.org&gt;
Cc: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
Cc: Andreas Dilger &lt;adilger@dilger.ca&gt;
Cc: Mark Fasheh &lt;mfasheh@suse.de&gt;
Cc: Joel Becker &lt;jlbec@evilplan.org&gt;
Cc: Dave Chinner &lt;david@fromorbit.com&gt;
Cc: Ben Myers &lt;bpm@sgi.com&gt;
Cc: Michael Kerrisk &lt;mtk.manpages@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now tmpfs supports hole-punching via fallocate(), switch madvise_remove()
to use do_fallocate() instead of vmtruncate_range(): which extends
madvise(,,MADV_REMOVE) support from tmpfs to ext4, ocfs2 and xfs.

There is one more user of vmtruncate_range() in our tree,
staging/android's ashmem_shrink(): convert it to use do_fallocate() too
(but if its unpinned areas are already unmapped - I don't know - then it
would do better to use shmem_truncate_range() directly).

Based-on-patch-by: Cong Wang &lt;amwang@redhat.com&gt;
Signed-off-by: Hugh Dickins &lt;hughd@google.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Cc: Colin Cross &lt;ccross@android.com&gt;
Cc: John Stultz &lt;john.stultz@linaro.org&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@linux-foundation.org&gt;
Cc: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
Cc: Andreas Dilger &lt;adilger@dilger.ca&gt;
Cc: Mark Fasheh &lt;mfasheh@suse.de&gt;
Cc: Joel Becker &lt;jlbec@evilplan.org&gt;
Cc: Dave Chinner &lt;david@fromorbit.com&gt;
Cc: Ben Myers &lt;bpm@sgi.com&gt;
Cc: Michael Kerrisk &lt;mtk.manpages@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[media] mm/drivers: use vm_flags_t for vma flags</title>
<updated>2012-04-10T18:44:21+00:00</updated>
<author>
<name>Konstantin Khlebnikov</name>
<email>khlebnikov@openvz.org</email>
</author>
<published>2012-03-21T05:56:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=7cfce77d779f43299c1cfeddd72462fed596c168'/>
<id>7cfce77d779f43299c1cfeddd72462fed596c168</id>
<content type='text'>
Signed-off-by: Konstantin Khlebnikov &lt;khlebnikov@openvz.org&gt;
Cc: linux-media@vger.kernel.org
Cc: devel@driverdev.osuosl.org
Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Cc: Mauro Carvalho Chehab &lt;mchehab@infradead.org&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Cc: John Stultz &lt;john.stultz@linaro.org&gt;
Cc: "Arve Hjønnevåg" &lt;arve@android.com&gt;
Acked-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Acked-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Konstantin Khlebnikov &lt;khlebnikov@openvz.org&gt;
Cc: linux-media@vger.kernel.org
Cc: devel@driverdev.osuosl.org
Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Cc: Mauro Carvalho Chehab &lt;mchehab@infradead.org&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Cc: John Stultz &lt;john.stultz@linaro.org&gt;
Cc: "Arve Hjønnevåg" &lt;arve@android.com&gt;
Acked-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Acked-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers/staging/android/ashmem.c: Cleanups</title>
<updated>2012-02-09T00:47:51+00:00</updated>
<author>
<name>Tracey Dent</name>
<email>tdent48227@gmail.com</email>
</author>
<published>2012-01-23T02:28:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=aa5af974127d317071d6225a0f3678c5f520e7ce'/>
<id>aa5af974127d317071d6225a0f3678c5f520e7ce</id>
<content type='text'>
Minor cleanups that consist of removal of a whitespace and
make file_operations const.

Signed-off-by: Tracey Dent &lt;tdent48227@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Minor cleanups that consist of removal of a whitespace and
make file_operations const.

Signed-off-by: Tracey Dent &lt;tdent48227@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ashmem: Whitespace cleanups</title>
<updated>2011-12-21T21:40:25+00:00</updated>
<author>
<name>John Stultz</name>
<email>john.stultz@linaro.org</email>
</author>
<published>2011-12-21T00:49:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=1efb34394a694b458d66f25072318c375e22afe2'/>
<id>1efb34394a694b458d66f25072318c375e22afe2</id>
<content type='text'>
Fixes checkpatch warnings with the ashmem.c file

CC: Brian Swetland &lt;swetland@google.com&gt;
CC: Colin Cross &lt;ccross@android.com&gt;
CC: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Dima Zavin &lt;dima@android.com&gt;
CC: Robert Love &lt;rlove@google.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes checkpatch warnings with the ashmem.c file

CC: Brian Swetland &lt;swetland@google.com&gt;
CC: Colin Cross &lt;ccross@android.com&gt;
CC: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Dima Zavin &lt;dima@android.com&gt;
CC: Robert Love &lt;rlove@google.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ashmem: Fix arguments to ashmem_shrink</title>
<updated>2011-12-21T21:40:24+00:00</updated>
<author>
<name>Colin Cross</name>
<email>ccross@android.com</email>
</author>
<published>2011-12-21T00:49:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=33e8fc463eeec29227282e4bd2082f5928d629a5'/>
<id>33e8fc463eeec29227282e4bd2082f5928d629a5</id>
<content type='text'>
The arguments to shrink functions have changed, update
ashmem_shrink to match.

Signed-off-by: Colin Cross &lt;ccross@android.com&gt;
[jstultz: tweaked commit subject]
CC: Brian Swetland &lt;swetland@google.com&gt;
CC: Colin Cross &lt;ccross@android.com&gt;
CC: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Dima Zavin &lt;dima@android.com&gt;
CC: Robert Love &lt;rlove@google.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The arguments to shrink functions have changed, update
ashmem_shrink to match.

Signed-off-by: Colin Cross &lt;ccross@android.com&gt;
[jstultz: tweaked commit subject]
CC: Brian Swetland &lt;swetland@google.com&gt;
CC: Colin Cross &lt;ccross@android.com&gt;
CC: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Dima Zavin &lt;dima@android.com&gt;
CC: Robert Love &lt;rlove@google.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ashmem: Support lseek(2) in ashmem driver</title>
<updated>2011-12-21T21:40:24+00:00</updated>
<author>
<name>Bjorn Bringert</name>
<email>bringert@android.com</email>
</author>
<published>2011-12-21T00:49:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=5154b93b8eceb57bdab4e77030bf21ead15b42e4'/>
<id>5154b93b8eceb57bdab4e77030bf21ead15b42e4</id>
<content type='text'>
Signed-off-by: Bjorn Bringert &lt;bringert@android.com&gt;
[jstultz: tweaked commit subject]
CC: Brian Swetland &lt;swetland@google.com&gt;
CC: Colin Cross &lt;ccross@android.com&gt;
CC: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Dima Zavin &lt;dima@android.com&gt;
CC: Robert Love &lt;rlove@google.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Bjorn Bringert &lt;bringert@android.com&gt;
[jstultz: tweaked commit subject]
CC: Brian Swetland &lt;swetland@google.com&gt;
CC: Colin Cross &lt;ccross@android.com&gt;
CC: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Dima Zavin &lt;dima@android.com&gt;
CC: Robert Love &lt;rlove@google.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ashmem: Update arguments of shrinker for 2.6.35</title>
<updated>2011-12-21T21:40:23+00:00</updated>
<author>
<name>Colin Cross</name>
<email>ccross@google.com</email>
</author>
<published>2011-12-21T00:49:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=1d3f8f2da1c28709a3c494f3872b89c871906b2d'/>
<id>1d3f8f2da1c28709a3c494f3872b89c871906b2d</id>
<content type='text'>
Signed-off-by: Colin Cross &lt;ccross@google.com&gt;
CC: Brian Swetland &lt;swetland@google.com&gt;
CC: Colin Cross &lt;ccross@android.com&gt;
CC: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Dima Zavin &lt;dima@android.com&gt;
CC: Robert Love &lt;rlove@google.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Colin Cross &lt;ccross@google.com&gt;
CC: Brian Swetland &lt;swetland@google.com&gt;
CC: Colin Cross &lt;ccross@android.com&gt;
CC: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Dima Zavin &lt;dima@android.com&gt;
CC: Robert Love &lt;rlove@google.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ashmem: Fix ASHMEM_SET_PROT_MASK.</title>
<updated>2011-12-21T21:40:23+00:00</updated>
<author>
<name>Arve Hjønnevåg</name>
<email>arve@android.com</email>
</author>
<published>2011-12-21T00:49:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=56f76fc68492af718fff88927bc296635d634b78'/>
<id>56f76fc68492af718fff88927bc296635d634b78</id>
<content type='text'>
Signed-off-by: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Brian Swetland &lt;swetland@google.com&gt;
CC: Colin Cross &lt;ccross@android.com&gt;
CC: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Dima Zavin &lt;dima@android.com&gt;
CC: Robert Love &lt;rlove@google.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Brian Swetland &lt;swetland@google.com&gt;
CC: Colin Cross &lt;ccross@android.com&gt;
CC: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Dima Zavin &lt;dima@android.com&gt;
CC: Robert Love &lt;rlove@google.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ashmem: Implement read(2) in ashmem driver</title>
<updated>2011-12-21T21:40:22+00:00</updated>
<author>
<name>Bjorn Bringert</name>
<email>bringert@android.com</email>
</author>
<published>2011-12-21T00:49:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=853ca7ae292f9c4809e1e42914e81453eaa15367'/>
<id>853ca7ae292f9c4809e1e42914e81453eaa15367</id>
<content type='text'>
Signed-off-by: Bjorn Bringert &lt;bringert@android.com&gt;
[jstultz: Tweaked commit subject]
CC: Brian Swetland &lt;swetland@google.com&gt;
CC: Colin Cross &lt;ccross@android.com&gt;
CC: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Dima Zavin &lt;dima@android.com&gt;
CC: Robert Love &lt;rlove@google.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Bjorn Bringert &lt;bringert@android.com&gt;
[jstultz: Tweaked commit subject]
CC: Brian Swetland &lt;swetland@google.com&gt;
CC: Colin Cross &lt;ccross@android.com&gt;
CC: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Dima Zavin &lt;dima@android.com&gt;
CC: Robert Love &lt;rlove@google.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ashmem: Anonymous shared memory subsystem</title>
<updated>2011-12-21T21:38:28+00:00</updated>
<author>
<name>Robert Love</name>
<email>rlove@google.com</email>
</author>
<published>2011-12-21T00:49:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=11980c2ac4ccfad21a5f8ee9e12059f1e687bb40'/>
<id>11980c2ac4ccfad21a5f8ee9e12059f1e687bb40</id>
<content type='text'>
The anonymous shared memory (ashmem) subsystem provides a
Unix-y,file-based shared memory interface to user-space. It
works like anonymous memory (e.g. mmapping fd=0) except if
you share the file descriptor via the usual means, you will
share the mapping. The shared memory can be accessed via both
mmap or file I/O. The backing store is a simple shmem file.

Additionally, ashmem introduces the concept of page pinning.
Pinned pages (the default) behave like any anonymous memory.
Unpinned pages are available to the kernel for eviction during
VM pressure. When repinning the pages, the return value
instructs user-space as to any eviction. In this manner,
user-space processes may implement caching and similar
resource management that efficiently integrates with kernel
memory management.

Signed-off-by: Robert Love &lt;rlove@google.com&gt;

ashmem: Don't install fault handler for private mmaps.

Ashmem is used to create named private heaps. If this heap is backed
by a tmpfs file it will allocate two pages for every page touched.
In 2.6.27, the extra page would later be freed, but 2.6.29 does not
scan anonymous pages when running without swap so the memory is not
freed while the file is referenced. This change changes the behavior
of private ashmem mmaps to match /dev/zero instead tmpfs.

Signed-off-by: Arve Hjønnevåg &lt;arve@android.com&gt;

ashmem: Add common prefix to name reported in /proc/pid/maps

Signed-off-by: Arve Hjønnevåg &lt;arve@android.com&gt;

ashmem: don't require a page aligned size

This makes ashmem more similar to shmem and mmap, by
not requiring the specified size to be page aligned,
instead rounding it internally as needed.

Signed-off-by: Marco Nelissen &lt;marcone@android.com&gt;
[jstultz: Improved commit subject and included patch description
from rlove. Also moved ashmem files to staging dir, and reworked
code to avoid touching mm/shmem.c while we're in staging.]
CC: Brian Swetland &lt;swetland@google.com&gt;
CC: Colin Cross &lt;ccross@android.com&gt;
CC: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Dima Zavin &lt;dima@android.com&gt;
CC: Robert Love &lt;rlove@google.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The anonymous shared memory (ashmem) subsystem provides a
Unix-y,file-based shared memory interface to user-space. It
works like anonymous memory (e.g. mmapping fd=0) except if
you share the file descriptor via the usual means, you will
share the mapping. The shared memory can be accessed via both
mmap or file I/O. The backing store is a simple shmem file.

Additionally, ashmem introduces the concept of page pinning.
Pinned pages (the default) behave like any anonymous memory.
Unpinned pages are available to the kernel for eviction during
VM pressure. When repinning the pages, the return value
instructs user-space as to any eviction. In this manner,
user-space processes may implement caching and similar
resource management that efficiently integrates with kernel
memory management.

Signed-off-by: Robert Love &lt;rlove@google.com&gt;

ashmem: Don't install fault handler for private mmaps.

Ashmem is used to create named private heaps. If this heap is backed
by a tmpfs file it will allocate two pages for every page touched.
In 2.6.27, the extra page would later be freed, but 2.6.29 does not
scan anonymous pages when running without swap so the memory is not
freed while the file is referenced. This change changes the behavior
of private ashmem mmaps to match /dev/zero instead tmpfs.

Signed-off-by: Arve Hjønnevåg &lt;arve@android.com&gt;

ashmem: Add common prefix to name reported in /proc/pid/maps

Signed-off-by: Arve Hjønnevåg &lt;arve@android.com&gt;

ashmem: don't require a page aligned size

This makes ashmem more similar to shmem and mmap, by
not requiring the specified size to be page aligned,
instead rounding it internally as needed.

Signed-off-by: Marco Nelissen &lt;marcone@android.com&gt;
[jstultz: Improved commit subject and included patch description
from rlove. Also moved ashmem files to staging dir, and reworked
code to avoid touching mm/shmem.c while we're in staging.]
CC: Brian Swetland &lt;swetland@google.com&gt;
CC: Colin Cross &lt;ccross@android.com&gt;
CC: Arve Hjønnevåg &lt;arve@android.com&gt;
CC: Dima Zavin &lt;dima@android.com&gt;
CC: Robert Love &lt;rlove@google.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
