]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/bfs/dir.c
V4L/DVB (10168): sms1xxx: fix inverted gpio for lna control on tiger r2
[linux-2.6-omap-h63xx.git] / fs / bfs / dir.c
index ed8feb052df978fff85f0edaabee9fa17ce9609d..4dd1b623f93748313be9cd4a2de3354bde9f8873 100644 (file)
@@ -80,6 +80,7 @@ const struct file_operations bfs_dir_operations = {
        .read           = generic_read_dir,
        .readdir        = bfs_readdir,
        .fsync          = file_fsync,
+       .llseek         = generic_file_llseek,
 };
 
 extern void dump_imap(const char *, struct super_block *);
@@ -105,8 +106,8 @@ static int bfs_create(struct inode *dir, struct dentry *dentry, int mode,
        }
        set_bit(ino, info->si_imap);
        info->si_freei--;
-       inode->i_uid = current->fsuid;
-       inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid;
+       inode->i_uid = current_fsuid();
+       inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current_fsgid();
        inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC;
        inode->i_blocks = 0;
        inode->i_op = &bfs_file_inops;