From: Rene Blokland <reneb@orac.aais.org>
To: linux-kernel@vger.kernel.org
Subject: Re: OOPS kernel2.5.17 in vatfs? !SOLVED!
Date: Wed, 22 May 2002 15:00:56 +0200 [thread overview]
Message-ID: <slrnaen5k7.ae.reneb@orac.aais.org> (raw)
In-Reply-To: <slrnaekbe3.4u.reneb@orac.aais.org> <87vg9ha6lc.fsf@devron.myhome.or.jp>
Hi OGAWA Hirofumi san
This solves the oops pervect please sent it to Linus san
Thank you for ypour help!
In article <87vg9ha6lc.fsf@devron.myhome.or.jp>, OGAWA Hirofumi wrote:
>
> --- linux-cvs/fs/vfat/namei.c.orig Tue May 21 21:59:42 2002
> +++ linux-cvs/fs/vfat/namei.c Tue May 21 21:58:25 2002
> @@ -1020,16 +1020,12 @@
> unlock_kernel();
> dentry->d_op = &vfat_dentry_ops[table];
> dentry->d_time = dentry->d_parent->d_inode->i_version;
> - if (inode) {
> - dentry = d_splice_alias(inode, dentry);
> - if (dentry) {
> - dentry->d_op = &vfat_dentry_ops[table];
> - dentry->d_time = dentry->d_parent->d_inode->i_version;
> - }
> - return dentry;
> + dentry = d_splice_alias(inode, dentry);
> + if (dentry) {
> + dentry->d_op = &vfat_dentry_ops[table];
> + dentry->d_time = dentry->d_parent->d_inode->i_version;
> }
> - d_add(dentry,inode);
> - return NULL;
> + return dentry;
> }
>
> int vfat_create(struct inode *dir,struct dentry* dentry,int mode)
> --- linux-cvs/fs/msdos/namei.c.orig Tue May 21 22:02:08 2002
> +++ linux-cvs/fs/msdos/namei.c Tue May 21 22:01:46 2002
> @@ -221,22 +221,17 @@
> if (res)
> goto out;
> add:
> - if (inode) {
> - dentry = d_splice_alias(inode, dentry);
> - dentry->d_op = &msdos_dentry_operations;
> - } else {
> - d_add(dentry, inode);
> - dentry = NULL;
> - }
> res = 0;
> + dentry = d_splice_alias(inode, dentry);
> + if (dentry)
> + dentry->d_op = &msdos_dentry_operations;
> out:
> if (bh)
> fat_brelse(sb, bh);
> unlock_kernel();
> - if (res)
> - return ERR_PTR(res);
> - else
> + if (!res)
> return dentry;
> + return ERR_PTR(res);
> }
>
> /***** Creates a directory entry (name is already formatted). */
>
--
Groeten / Regards, Rene J. Blokland
next prev parent reply other threads:[~2002-05-22 13:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-21 11:21 OOPS kernel2.5.17 in vatfs? Rene Blokland
2002-05-21 15:00 ` OGAWA Hirofumi
2002-05-22 13:00 ` Rene Blokland [this message]
2002-05-22 13:56 ` OOPS kernel2.5.17 in vatfs? !SOLVED! OGAWA Hirofumi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrnaen5k7.ae.reneb@orac.aais.org \
--to=reneb@orac.aais.org \
--cc=linux-kernel@vger.kernel.org \
--cc=reneb@cistron.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®