mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
don't put symlink bodies in pagecache into highmem
kmap() in page_follow_link_light() needed to go - allowing to hold an arbitrary number of kmaps for long is a great way to deadlocking the system. new helper (inode_nohighmem(inode)) needs to be used for pagecache symlinks inodes; done for all in-tree cases. page_follow_link_light() instrumented to yell about anything missed. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
aa80deab33
commit
21fc61c73c
57 changed files with 81 additions and 46 deletions
|
@ -1361,6 +1361,7 @@ static void init_inode(struct inode *inode, struct treepath *path)
|
|||
inode->i_fop = &reiserfs_dir_operations;
|
||||
} else if (S_ISLNK(inode->i_mode)) {
|
||||
inode->i_op = &reiserfs_symlink_inode_operations;
|
||||
inode_nohighmem(inode);
|
||||
inode->i_mapping->a_ops = &reiserfs_address_space_operations;
|
||||
} else {
|
||||
inode->i_blocks = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue