diff options
author | David Howells <dhowells@redhat.com> | 2011-01-14 14:04:05 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-01-15 20:07:33 -0500 |
commit | d18610b0ce9eb48c60649d8fcbf68374c84349d3 (patch) | |
tree | 58a4088b75a14a35e343b7ee6a4ba57d63792270 /fs/afs/inode.c | |
parent | 6f45b65672c8017d5e210e338bb5858a938ef445 (diff) |
AFS: Use d_automount() rather than abusing follow_link()
Make AFS use the new d_automount() dentry operation rather than abusing
follow_link() on directories.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/afs/inode.c')
-rw-r--r-- | fs/afs/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/afs/inode.c b/fs/afs/inode.c index 0747339011c3..db66c5201474 100644 --- a/fs/afs/inode.c +++ b/fs/afs/inode.c | |||
@@ -184,7 +184,8 @@ struct inode *afs_iget_autocell(struct inode *dir, const char *dev_name, | |||
184 | inode->i_generation = 0; | 184 | inode->i_generation = 0; |
185 | 185 | ||
186 | set_bit(AFS_VNODE_PSEUDODIR, &vnode->flags); | 186 | set_bit(AFS_VNODE_PSEUDODIR, &vnode->flags); |
187 | inode->i_flags |= S_NOATIME; | 187 | set_bit(AFS_VNODE_MOUNTPOINT, &vnode->flags); |
188 | inode->i_flags |= S_AUTOMOUNT | S_NOATIME; | ||
188 | unlock_new_inode(inode); | 189 | unlock_new_inode(inode); |
189 | _leave(" = %p", inode); | 190 | _leave(" = %p", inode); |
190 | return inode; | 191 | return inode; |