Message ID | 1370364959-9475-6-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index ed6208f..5c669f4 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -169,7 +169,8 @@ cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr) if (fattr->cf_flags & CIFS_FATTR_DFS_REFERRAL) inode->i_flags |= S_AUTOMOUNT; - cifs_set_ops(inode); + if (inode->i_state & I_NEW) + cifs_set_ops(inode); } void