don't put symlink bodies in pagecache into highmem
[deliverable/linux.git] / fs / btrfs / inode.c
index a70c5790f8f5908f08f606d097fe33e6966af36b..70f98bfde27757e50b20433a402b12f852a18f6e 100644 (file)
@@ -3774,6 +3774,7 @@ cache_acl:
                break;
        case S_IFLNK:
                inode->i_op = &btrfs_symlink_inode_operations;
+               inode_nohighmem(inode);
                inode->i_mapping->a_ops = &btrfs_symlink_aops;
                break;
        default:
@@ -9705,6 +9706,7 @@ static int btrfs_symlink(struct inode *dir, struct dentry *dentry,
        btrfs_free_path(path);
 
        inode->i_op = &btrfs_symlink_inode_operations;
+       inode_nohighmem(inode);
        inode->i_mapping->a_ops = &btrfs_symlink_aops;
        inode_set_bytes(inode, name_len);
        btrfs_i_size_write(inode, name_len);
This page took 0.025676 seconds and 5 git commands to generate.