patch-2.3.21 linux/fs/ncpfs/dir.c
Next file: linux/fs/partitions/msdos.c
Previous file: linux/fs/fcntl.c
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Mon Oct 11 10:13:25 1999
- Orig file:
v2.3.20/linux/fs/ncpfs/dir.c
- Orig date:
Sat Oct 9 11:47:50 1999
diff -u --recursive --new-file v2.3.20/linux/fs/ncpfs/dir.c linux/fs/ncpfs/dir.c
@@ -433,7 +433,7 @@
ino = find_inode_number(dentry, &qname);
if (!ino)
- ino = iunique(2);
+ ino = iunique(dentry->d_inode->i_sb, 2);
result = filldir(dirent, name, len, filp->f_pos, ino);
if (!result)
@@ -478,7 +478,7 @@
if (!newdent->d_inode) {
entry->opened = 0;
- entry->ino = iunique(2);
+ entry->ino = iunique(inode->i_sb, 2);
newino = ncp_iget(inode->i_sb, entry);
if (newino) {
newdent->d_op = &ncp_dentry_operations;
@@ -501,7 +501,7 @@
ino = find_inode_number(dentry, &qname);
if (!ino)
- ino = iunique(2);
+ ino = iunique(inode->i_sb, 2);
result = filldir(dirent, entry->i.entryName, entry->i.nameLen,
filp->f_pos, ino);
@@ -794,7 +794,7 @@
* Create an inode for the entry.
*/
finfo.opened = 0;
- finfo.ino = iunique(2);
+ finfo.ino = iunique(dir->i_sb, 2);
error = -EACCES;
inode = ncp_iget(dir->i_sb, &finfo);
@@ -822,7 +822,7 @@
struct inode *inode;
int error = -EINVAL;
- finfo->ino = iunique(2);
+ finfo->ino = iunique(dir->i_sb, 2);
inode = ncp_iget(dir->i_sb, finfo);
if (!inode)
goto out_close;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)