From: Christoph Hellwig <hch@lst.de>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] fix #warning in ocfs_inc_icount in f-c branch
Date: Thu Jun 3 06:01:43 2004 [thread overview]
Message-ID: <20040603110140.GD13534@lst.de> (raw)
I think you actually want to use igrab here, but..
Index: src/inc/ocfs.h
===================================================================
--- src/inc/ocfs.h (revision 994)
+++ src/inc/ocfs.h (working copy)
@@ -1797,30 +1797,14 @@
static inline int ocfs_inc_icount(struct inode *inode)
{
- struct dentry *dentry = NULL;
- struct list_head *iter;
-
if (atomic_read(&inode->i_count) >= 1 &&
!(inode->i_state & I_CLEAR)) {
atomic_inc(&inode->i_count);
return 0;
}
- list_for_each (iter, &(inode->i_dentry)) {
- dentry = list_entry (iter, struct dentry, d_alias);
-#warning This cant be right in the land of hardlinks, can it?
- // what the heck, take the first one ;-)
- break;
- }
-
- if (dentry)
- LOG_ERROR_ARGS("eek! i_count=%d, i_state=%lu, i_ino=%lu, name='%*s'\n",
- atomic_read(&inode->i_count), inode->i_state, inode->i_ino,
- dentry->d_name.len, dentry->d_name.name);
- else
- LOG_ERROR_ARGS("eek! i_count=%d, i_state=%lu, i_ino=%lu, no dentry\n",
- atomic_read(&inode->i_count), inode->i_state, inode->i_ino);
-
+ LOG_ERROR_ARGS("eek! i_count=%d, i_state=%lu, i_ino=%lu, no dentry\n",
+ atomic_read(&inode->i_count), inode->i_state, inode->i_ino);
LOG_ERROR_ARGS("feoff=%llu, deleted=%u\n",
GET_INODE_FEOFF(inode),
INODE_DELETED(inode));
reply other threads:[~2004-06-03 6:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20040603110140.GD13534@lst.de \
--to=hch@lst.de \
--cc=ocfs2-devel@oss.oracle.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.