summaryrefslogtreecommitdiffstats
path: root/fs/autofs4/inode.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-03-02 02:36:47 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-03-02 02:36:47 +0000
commit8624512aa908741ba2795200133eae0d7f4557ea (patch)
treed5d3036fccf2604f4c98dedc11e8adb929d6b52e /fs/autofs4/inode.c
parent7b8f5d6f1d45d9f9de1d26e7d3c32aa5af11b488 (diff)
Merge with 2.3.48.
Diffstat (limited to 'fs/autofs4/inode.c')
-rw-r--r--fs/autofs4/inode.c7
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;
}