diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-03-02 02:36:47 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-03-02 02:36:47 +0000 |
commit | 8624512aa908741ba2795200133eae0d7f4557ea (patch) | |
tree | d5d3036fccf2604f4c98dedc11e8adb929d6b52e /fs/autofs4/inode.c | |
parent | 7b8f5d6f1d45d9f9de1d26e7d3c32aa5af11b488 (diff) |
Merge with 2.3.48.
Diffstat (limited to 'fs/autofs4/inode.c')
-rw-r--r-- | fs/autofs4/inode.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index 9c8bd133f..40d149272 100644 --- a/fs/autofs4/inode.c +++ b/fs/autofs4/inode.c @@ -410,10 +410,13 @@ static void autofs4_read_inode(struct inode *inode) if (S_ISDIR(inf->mode)) { inode->i_nlink = 2; - if (inode->i_ino == AUTOFS_ROOT_INO) + if (inode->i_ino == AUTOFS_ROOT_INO) { inode->i_op = &autofs4_root_inode_operations; - else + inode->i_fop = &autofs4_root_operations; + } else { inode->i_op = &autofs4_dir_inode_operations; + inode->i_fop = &autofs4_dir_operations; + } } else if (S_ISLNK(inf->mode)) { inode->i_op = &autofs4_symlink_inode_operations; } |