patch-2.3.48 linux/fs/autofs4/inode.c

Next file: linux/fs/autofs4/root.c
Previous file: linux/fs/autofs4/autofs_i.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/autofs4/inode.c linux/fs/autofs4/inode.c
@@ -410,10 +410,13 @@
 
 	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;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)