X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fautofs%2Fsymlink.c;h=7ce9cb2c9ce21f74db531eef41d5df420feca5af;hb=ecd27b92fbb41f779d857632a69bd45dbaf0f915;hp=52e8772b066e33fece33d73ae5ddf30568c5b4ca;hpb=b8d9598c41e999fb094d3811019248197c54274a;p=linux-2.6 diff --git a/fs/autofs/symlink.c b/fs/autofs/symlink.c index 52e8772b06..7ce9cb2c9c 100644 --- a/fs/autofs/symlink.c +++ b/fs/autofs/symlink.c @@ -15,12 +15,12 @@ /* Nothing to release.. */ static void *autofs_follow_link(struct dentry *dentry, struct nameidata *nd) { - char *s=((struct autofs_symlink *)dentry->d_inode->u.generic_ip)->data; + char *s=((struct autofs_symlink *)dentry->d_inode->i_private)->data; nd_set_link(nd, s); return NULL; } -struct inode_operations autofs_symlink_inode_operations = { +const struct inode_operations autofs_symlink_inode_operations = { .readlink = generic_readlink, .follow_link = autofs_follow_link };