]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/ext3/ioctl.c
Update generic board defconfigs, enable the newer OMAP RTC by
[linux-2.6-omap-h63xx.git] / fs / ext3 / ioctl.c
index 12daa68695721ffaf4a06bfa087d2018fceeb845..965006dba6be8d22715dff9f52c2c5038c072c01 100644 (file)
@@ -28,6 +28,7 @@ int ext3_ioctl (struct inode * inode, struct file * filp, unsigned int cmd,
 
        switch (cmd) {
        case EXT3_IOC_GETFLAGS:
+               ext3_get_inode_flags(ei);
                flags = ei->i_flags & EXT3_FL_USER_VISIBLE;
                return put_user(flags, (int __user *) arg);
        case EXT3_IOC_SETFLAGS: {
@@ -257,7 +258,7 @@ flags_err:
 #ifdef CONFIG_COMPAT
 long ext3_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 {
-       struct inode *inode = file->f_dentry->d_inode;
+       struct inode *inode = file->f_path.dentry->d_inode;
        int ret;
 
        /* These are just misnamed, they actually get/put from/to user an int */