patch-2.2.18 linux/fs/ext2/ioctl.c
Next file: linux/fs/ext2/truncate.c
Previous file: linux/fs/ext2/inode.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Oct 15 21:15:17 2000
- Orig file:
v2.2.17/fs/ext2/ioctl.c
- Orig date:
Fri Apr 21 12:46:42 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/fs/ext2/ioctl.c linux/fs/ext2/ioctl.c
@@ -68,15 +68,14 @@
mark_inode_dirty(inode);
return 0;
case EXT2_IOC_GETVERSION:
- return put_user(inode->u.ext2_i.i_version, (int *) arg);
+ return put_user(inode->i_generation, (int *) arg);
case EXT2_IOC_SETVERSION:
if ((current->fsuid != inode->i_uid) && !capable(CAP_FOWNER))
return -EPERM;
if (IS_RDONLY(inode))
return -EROFS;
- if (get_user(inode->u.ext2_i.i_version, (int *) arg))
+ if (get_user(inode->i_generation, (int *) arg))
return -EFAULT;
- inode->i_generation = inode->u.ext2_i.i_version;
inode->i_ctime = CURRENT_TIME;
mark_inode_dirty(inode);
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)