* 619078. */
CDEBUG(D_INFO, "d_count: %d\n", atomic_read(&de->d_count));
if (it && atomic_read(&de->d_count) > 0) {
- CERROR("returning 1 for %*s during %s because d_count is %d\n",
- de->d_name.len, de->d_name.name, ldlm_it2str(it->it_op),
- atomic_read(&de->d_count));
+ CDEBUG(D_INFO, "returning 1 for %*s during %s because d_count "
+ "is %d\n", de->d_name.len, de->d_name.name,
+ ldlm_it2str(it->it_op), atomic_read(&de->d_count));
GOTO(out, rc = 1);
}
RETURN(ll_file_size(inode, lsm));
}
-static int ll_getattr(struct vfsmount *mnt, struct dentry *de,
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
+static int ll_getattr(struct vfsmount *mnt, struct dentry *de,
struct kstat *stat)
{
return ll_inode_revalidate(de);
}
+#endif
struct file_operations ll_file_operations = {
read: ll_file_read,
truncate: ll_truncate,
setattr: ll_setattr,
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
- getattr: ll_getattr,
+ getattr: ll_getattr,
#else
revalidate: ll_inode_revalidate,
#endif
}
/* methods */
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
+static int ll_find_inode(struct inode *inode, unsigned long ino, void *opaque)
+#else
static int ll_test_inode(struct inode *inode, void *opaque)
+#endif
{
struct ll_read_inode2_cookie *lic = opaque;
struct mds_body *body = lic->lic_body;
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
extern int ll_read_inode2(struct inode *inode, void *opaque);
-struct inode *ll_iget(struct super_block *sb, ino_t hash,
+struct inode *ll_iget(struct super_block *sb, ino_t hash,
struct ll_read_inode2_cookie *lic)
{
struct inode *inode;
return ERR_PTR(-ENOMEM);
if (inode->i_state & I_NEW) {
-
+
unlock_new_inode(inode);
}
return inode;
}
#else
-struct inode *ll_iget(struct super_block *sb, inot_t hash,
+struct inode *ll_iget(struct super_block *sb, ino_t hash,
struct ll_read_inode2_cookie *lic)
{
struct inode *inode;
struct lookup_intent *it;
struct inode *inode;
int rc = 0;
-
+
LL_GET_INTENT(dentry, it);
inode = ll_create_node(dir, dentry->d_name.name, dentry->d_name.len,
struct lookup_intent *it;
struct inode *inode = old_dentry->d_inode;
int rc;
-
+
LL_GET_INTENT(dentry, it);
if (it && it->it_disposition) {
LL_GET_INTENT(new_dentry, it);
- if (it && it->it_disposition) {
+ if (it && it->it_disposition) {
if (tgt_inode) {
tgt_inode->i_ctime = CURRENT_TIME;
tgt_inode->i_nlink--;