mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-06 08:06:56 +00:00
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:
+2
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user