patch-2.3.50 linux/fs/coda/dir.c

Next file: linux/fs/devfs/base.c
Previous file: linux/fs/buffer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.49/linux/fs/coda/dir.c linux/fs/coda/dir.c
@@ -57,10 +57,8 @@
 
 struct dentry_operations coda_dentry_operations =
 {
-	coda_dentry_revalidate, /* revalidate */
-	NULL, /* hash */
-	NULL, /* compare */
-	coda_dentry_delete /* delete */
+	d_revalidate:	coda_dentry_revalidate,
+	d_delete:	coda_dentry_delete,
 };
 
 struct inode_operations coda_dir_inode_operations =
@@ -541,9 +539,7 @@
                 result = coda_venus_readdir(&open_file, dirent, filldir);
         } else {
                 /* potemkin case: we are handed a directory inode */
-		down(&cnp->c_ovp->i_sem);
-                result = open_file.f_op->readdir(&open_file, dirent, filldir);
-		up(&cnp->c_ovp->i_sem);
+                result = vfs_readdir(&open_file, filldir, dirent);
         }
 	coda_restore_codafile(inode, file, cnp->c_ovp, &open_file);
         EXIT;

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