]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/acct.c
[PATCH] Make printk work for really early debugging
[linux-2.6-omap-h63xx.git] / kernel / acct.c
index b327f4d20104042739801c556a27a510a6f77987..6802020e0ceb07c4078e591373ed4df38471b27a 100644 (file)
@@ -118,7 +118,7 @@ static int check_free_space(struct file *file)
        spin_unlock(&acct_globals.lock);
 
        /* May block */
-       if (vfs_statfs(file->f_dentry->d_inode->i_sb, &sbuf))
+       if (vfs_statfs(file->f_dentry, &sbuf))
                return res;
        suspend = sbuf.f_blocks * SUSPEND;
        resume = sbuf.f_blocks * RESUME;