patch-2.3.99-pre7 linux/fs/dquot.c

Next file: linux/fs/efs/inode.c
Previous file: linux/fs/devpts/root.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/fs/dquot.c linux/fs/dquot.c
@@ -1544,15 +1544,15 @@
 	dev = NODEV;
 	if (special != NULL || (cmds != Q_SYNC && cmds != Q_GETSTATS)) {
 		mode_t mode;
-		struct dentry * dentry;
+		struct nameidata nd;
 
-		dentry = namei(special);
-		if (IS_ERR(dentry))
+		ret = user_path_walk(special, &nd);
+		if (ret)
 			goto out;
 
-		dev = dentry->d_inode->i_rdev;
-		mode = dentry->d_inode->i_mode;
-		dput(dentry);
+		dev = nd.dentry->d_inode->i_rdev;
+		mode = nd.dentry->d_inode->i_mode;
+		path_release(&nd);
 
 		ret = -ENOTBLK;
 		if (!S_ISBLK(mode))

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