@@ -1096,7 +1096,6 @@ __releases(nn->lock)
1096
1096
struct fuse_in_header ih = {
1097
1097
.opcode = FUSE_FORGET ,
1098
1098
.nodeid = forget -> forget_one .nodeid ,
1099
- .unique = fuse_get_unique (nn -> fc ),
1100
1099
.len = sizeof (ih ) + sizeof (arg ),
1101
1100
};
1102
1101
@@ -1105,6 +1104,7 @@ __releases(nn->lock)
1105
1104
if (nbytes < ih .len )
1106
1105
return - EINVAL ;
1107
1106
1107
+ ih .unique = fuse_get_unique (nn -> fc );
1108
1108
err = fuse_copy_one (cs , & ih , sizeof (ih ));
1109
1109
if (!err )
1110
1110
err = fuse_copy_one (cs , & arg , sizeof (arg ));
@@ -1127,7 +1127,6 @@ __releases(nn->lock)
1127
1127
struct fuse_batch_forget_in arg = { .count = 0 };
1128
1128
struct fuse_in_header ih = {
1129
1129
.opcode = FUSE_BATCH_FORGET ,
1130
- .unique = fuse_get_unique (nn -> fc ),
1131
1130
.len = sizeof (ih ) + sizeof (arg ),
1132
1131
};
1133
1132
@@ -1141,6 +1140,7 @@ __releases(nn->lock)
1141
1140
spin_unlock (& nn -> lock );
1142
1141
1143
1142
arg .count = count ;
1143
+ ih .unique = fuse_get_unique (nn -> fc );
1144
1144
ih .len += count * sizeof (struct fuse_forget_one );
1145
1145
err = fuse_copy_one (cs , & ih , sizeof (ih ));
1146
1146
if (!err )
0 commit comments