patch-2.2.4 linux/include/linux/quotaops.h

Next file: linux/include/linux/rtnetlink.h
Previous file: linux/include/linux/proc_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.3/linux/include/linux/quotaops.h linux/include/linux/quotaops.h
@@ -55,7 +55,7 @@
 {
 	if (sb->dq_op) {
 		if (sb->dq_op->alloc_block(inode, fs_to_dq_blocks(nr, sb->s_blocksize),
-					   current->euid, 0) == NO_QUOTA)
+					   current->fsuid, 0) == NO_QUOTA)
 			return 1;
 	}
 	return 0;
@@ -65,7 +65,7 @@
 {
 	if (sb->dq_op) {
 		if (sb->dq_op->alloc_block(inode, fs_to_dq_blocks(nr, sb->s_blocksize),
-					   current->euid, 1) == NO_QUOTA)
+					   current->fsuid, 1) == NO_QUOTA)
 			return 1;
 	}
 	return 0;
@@ -75,7 +75,7 @@
 {
 	if (sb->dq_op) {
 		sb->dq_op->initialize (inode, -1);
-		if (sb->dq_op->alloc_inode (inode, 1, current->euid))
+		if (sb->dq_op->alloc_inode (inode, 1, current->fsuid))
 			return 1;
 	}
 	inode->i_flags |= S_QUOTA;
@@ -101,11 +101,11 @@
 	if (dentry->d_inode->i_sb->dq_op) {
 		if (IS_QUOTAINIT(dentry->d_inode) == 0)
 			dentry->d_inode->i_sb->dq_op->initialize(dentry->d_inode, -1);
-		if (dentry->d_inode->i_sb->dq_op->transfer(dentry->d_inode, iattr, 0, current->euid))
+		if (dentry->d_inode->i_sb->dq_op->transfer(dentry->d_inode, iattr, 0, current->fsuid))
 			goto out;
 		error = notify_change(dentry, iattr);
 		if (error)
-			dentry->d_inode->i_sb->dq_op->transfer(dentry->d_inode, iattr, 1, current->euid);
+			dentry->d_inode->i_sb->dq_op->transfer(dentry->d_inode, iattr, 1, current->fsuid);
 	} else {
 		error = notify_change(dentry, iattr);
 	}

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