scoutfs: refresh inode in xattr set

scoutfs_xattr_set() refreshes the cached item inode with its current vfs
inode.  It has to refresh its vfs item as it acquires the lock before it
asserts that vfs inode as current.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2017-10-26 14:47:59 -07:00
committed by Mark Fasheh
parent 4c6253a18e
commit 5f74a7280c
+2 -1
View File
@@ -289,7 +289,8 @@ static int scoutfs_xattr_set(struct dentry *dentry, const char *name,
goto out;
}
ret = scoutfs_lock_inode(sb, DLM_LOCK_EX, 0, inode, &lck);
ret = scoutfs_lock_inode(sb, DLM_LOCK_EX, SCOUTFS_LKF_REFRESH_INODE,
inode, &lck);
if (ret)
goto out;