diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-01-17 00:47:38 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-01-18 01:21:27 -0500 |
commit | 292c5ee802e9b969b84ee671a5e3001d94230f5b (patch) | |
tree | 616b0a583d17c50aedbb87082943248333d63c2b /fs/autofs4/root.c | |
parent | c0bcc9d55252012805300ca01b9b7a143b4daf85 (diff) |
autofs4: keep symlink body in inode->i_private
gets rid of all ->free()/->u.symlink machinery in autofs; we simply
keep symlink bodies in inode->i_private and free them in ->evict_inode().
Acked-by: Ian Kent <raven@themaw.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/autofs4/root.c')
-rw-r--r-- | fs/autofs4/root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index 427129ab5292..f47aceabf58f 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c | |||
@@ -561,6 +561,7 @@ static int autofs4_dir_symlink(struct inode *dir, | |||
561 | kfree(ino); | 561 | kfree(ino); |
562 | return -ENOMEM; | 562 | return -ENOMEM; |
563 | } | 563 | } |
564 | inode->i_private = cp; | ||
564 | d_add(dentry, inode); | 565 | d_add(dentry, inode); |
565 | 566 | ||
566 | dentry->d_fsdata = ino; | 567 | dentry->d_fsdata = ino; |
@@ -570,7 +571,6 @@ static int autofs4_dir_symlink(struct inode *dir, | |||
570 | if (p_ino && dentry->d_parent != dentry) | 571 | if (p_ino && dentry->d_parent != dentry) |
571 | atomic_inc(&p_ino->count); | 572 | atomic_inc(&p_ino->count); |
572 | 573 | ||
573 | ino->u.symlink = cp; | ||
574 | dir->i_mtime = CURRENT_TIME; | 574 | dir->i_mtime = CURRENT_TIME; |
575 | 575 | ||
576 | return 0; | 576 | return 0; |