Whamcloud - gitweb
Branch: HEAD
authorwangdi <wangdi>
Thu, 1 Sep 2005 06:01:38 +0000 (06:01 +0000)
committerwangdi <wangdi>
Thu, 1 Sep 2005 06:01:38 +0000 (06:01 +0000)
lli_posix_acl and lli_key_info is not reliable on checking whether the acl and key_info
is valid on the client

lustre/llite/llite_gs.c

index 16a2f32..f511d38 100644 (file)
@@ -60,14 +60,6 @@ static int ll_get_acl_key(struct inode *inode, struct posix_acl **acl,
         int rc = 0;
         ENTRY;
 
-        if (lli->lli_posix_acl && lli->lli_key_info) {
-                /*If they are in the local cache, just fetch them*/
-                spin_lock(&lli->lli_lock);
-                *acl = posix_acl_dup(lli->lli_posix_acl);
-                *lkey =  lustre_key_get(lli->lli_key_info);
-                spin_unlock(&lli->lli_lock);
-                RETURN(rc);
-        }
         sbi = ll_i2sbi(inode);
         ll_inode2id(&id, inode);