]> git.baikalelectronics.ru Git - kernel.git/commit
Make sure that highmem pages are not added to symlink page cache
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 14 Jan 2016 22:52:59 +0000 (17:52 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 14 Jan 2016 22:56:54 +0000 (17:56 -0500)
commitd9a9baf1101d0e801c5ff8323d64db30072611b8
tree826e424c86cd079b845ad497bd8c9867b490524f
parent40f6eb72bda421f845688e9c878d59083780e788
Make sure that highmem pages are not added to symlink page cache

inode_nohighmem() is sufficient to make sure that page_get_link()
won't try to allocate a highmem page.  Moreover, it is sufficient
to make sure that page_symlink/__page_symlink won't do the same
thing.  However, any filesystem that manually preseeds the symlink's
page cache upon symlink(2) needs to make sure that the page it
inserts there won't be a highmem one.

Fortunately, only nfs and shmem have run afoul of that...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Documentation/filesystems/porting
fs/nfs/dir.c
mm/shmem.c