@@ -1086,7 +1086,6 @@ __releases(nn->lock)
1086
1086
struct fuse_in_header ih = {
1087
1087
.opcode = FUSE_FORGET ,
1088
1088
.nodeid = forget -> forget_one .nodeid ,
1089
- .unique = fuse_get_unique (nn -> fc ),
1090
1089
.len = sizeof (ih ) + sizeof (arg ),
1091
1090
};
1092
1091
@@ -1095,6 +1094,7 @@ __releases(nn->lock)
1095
1094
if (nbytes < ih .len )
1096
1095
return - EINVAL ;
1097
1096
1097
+ ih .unique = fuse_get_unique (nn -> fc );
1098
1098
err = fuse_copy_one (cs , & ih , sizeof (ih ));
1099
1099
if (!err )
1100
1100
err = fuse_copy_one (cs , & arg , sizeof (arg ));
@@ -1117,7 +1117,6 @@ __releases(nn->lock)
1117
1117
struct fuse_batch_forget_in arg = { .count = 0 };
1118
1118
struct fuse_in_header ih = {
1119
1119
.opcode = FUSE_BATCH_FORGET ,
1120
- .unique = fuse_get_unique (nn -> fc ),
1121
1120
.len = sizeof (ih ) + sizeof (arg ),
1122
1121
};
1123
1122
@@ -1131,6 +1130,7 @@ __releases(nn->lock)
1131
1130
spin_unlock (& nn -> lock );
1132
1131
1133
1132
arg .count = count ;
1133
+ ih .unique = fuse_get_unique (nn -> fc );
1134
1134
ih .len += count * sizeof (struct fuse_forget_one );
1135
1135
err = fuse_copy_one (cs , & ih , sizeof (ih ));
1136
1136
if (!err )
0 commit comments