patch-1.3.83 linux/fs/ncpfs/dir.c

Next file: linux/fs/ncpfs/sock.c
Previous file: linux/drivers/sound/pss.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.82/linux/fs/ncpfs/dir.c linux/fs/ncpfs/dir.c
@@ -125,10 +125,10 @@
 
 /* Here we encapsulate the inode number handling that depends upon the
  * mount mode: When we mount a complete server, the memory address of
- * the npc_inode_info is used as an inode. When only a single volume
- * is mounted, then the DosDirNum is used as the inode number. As this
- * is unique for the complete volume, this should enable the NFS
- * exportability of a ncpfs-mounted volume.
+ * the ncp_inode_info is used as the inode number. When only a single
+ * volume is mounted, then the DosDirNum is used as the inode
+ * number. As this is unique for the complete volume, this should
+ * enable the NFS exportability of a ncpfs-mounted volume.
  */
 
 static inline int
@@ -183,10 +183,6 @@
 	return -EISDIR;
 }
 
-/* In ncpfs, we have unique inodes across all mounted filesystems, for
-   all inodes that are in memory. That's why it's enough to index the
-   directory cache by the inode number. */
-
 static kdev_t             c_dev = 0;
 static unsigned long      c_ino = 0;
 static int                c_size;
@@ -320,11 +316,6 @@
 
         while (index < c_size)
 	{
-                /* We found it.  For getwd(), we have to return the
-                   correct inode in d_ino if the inode is currently in
-                   use. Otherwise the inode number does not
-                   matter. (You can argue a lot about this..) */
-
 		ino_t ino;
 
 		if (ncp_single_volume(server))
@@ -333,6 +324,10 @@
 		}
 		else
 		{
+			/* For getwd() we have to return the correct
+			 * inode in d_ino if the inode is currently in
+			 * use. Otherwise the inode number does not
+			 * matter. (You can argue a lot about this..) */
 			struct ncp_inode_info *ino_info;
 			ino_info = ncp_find_dir_inode(inode,
 						      entry->i.entryName);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this