From 787dc218a557abd30bdb54b1b973333333e61875 Mon Sep 17 00:00:00 2001
From: wangdi <wangdi>
Date: Mon, 16 Feb 2004 13:42:44 +0000
Subject: [PATCH] copy bottom inode attribute out to the vfs inode

---
 lustre/smfs/file.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lustre/smfs/file.c b/lustre/smfs/file.c
index 82639831ac..3175c564ba 100644
--- a/lustre/smfs/file.c
+++ b/lustre/smfs/file.c
@@ -417,6 +417,8 @@ int smfs_setattr(struct dentry *dentry, struct iattr *attr)
 	if (cache_inode->i_op->setattr)
 		rc = cache_inode->i_op->setattr(&open_dentry, attr);
 
+	duplicate_inode(inode, cache_inode);		
+	
 	RETURN(rc);
 } 
   
@@ -437,6 +439,7 @@ int smfs_setxattr(struct dentry *dentry, const char *name,
 	if (cache_inode->i_op->setattr)
 		rc = cache_inode->i_op->setxattr(&open_dentry, name, value, size, flags);
 
+	duplicate_inode(inode, cache_inode);		
 	RETURN(rc);
 } 
                         
@@ -457,6 +460,7 @@ int smfs_getxattr(struct dentry *dentry, const char *name,
 	if (cache_inode->i_op->setattr)
 		rc = cache_inode->i_op->getxattr(&open_dentry, name, buffer, size);
 
+	duplicate_inode(inode, cache_inode);		
 	RETURN(rc);
 }
 
@@ -495,6 +499,7 @@ int smfs_removexattr(struct dentry *dentry, const char *name)
 	if (cache_inode->i_op->removexattr)
 		rc = cache_inode->i_op->removexattr(&open_dentry, name);
 
+	duplicate_inode(inode, cache_inode);		
 	RETURN(rc);
 }
 
-- 
GitLab