Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84f30c66 authored by Jeff Layton's avatar Jeff Layton Committed by Steve French
Browse files

cifs: don't update uniqueid in cifs_fattr_to_inode



We use this value to find an inode within the hash bucket, so we can't
change this without re-hashing the inode. For now, treat this value
as immutable.

Eventually, we should probably use an inode number change on a path
based operation to indicate that the lookup cache is invalid, but that's
a bit more code to deal with.

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent db19272e
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -137,7 +137,6 @@ cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr)
		inode->i_mode = fattr->cf_mode;
		inode->i_mode = fattr->cf_mode;


	cifs_i->cifsAttrs = fattr->cf_cifsattrs;
	cifs_i->cifsAttrs = fattr->cf_cifsattrs;
	cifs_i->uniqueid = fattr->cf_uniqueid;


	if (fattr->cf_flags & CIFS_FATTR_NEED_REVAL)
	if (fattr->cf_flags & CIFS_FATTR_NEED_REVAL)
		cifs_i->time = 0;
		cifs_i->time = 0;