@@ -1096,7 +1096,6 @@ __releases(nn->lock)
10961096 struct fuse_in_header ih = {
10971097 .opcode = FUSE_FORGET ,
10981098 .nodeid = forget -> forget_one .nodeid ,
1099- .unique = fuse_get_unique (nn -> fc ),
11001099 .len = sizeof (ih ) + sizeof (arg ),
11011100 };
11021101
@@ -1105,6 +1104,7 @@ __releases(nn->lock)
11051104 if (nbytes < ih .len )
11061105 return - EINVAL ;
11071106
1107+ ih .unique = fuse_get_unique (nn -> fc );
11081108 err = fuse_copy_one (cs , & ih , sizeof (ih ));
11091109 if (!err )
11101110 err = fuse_copy_one (cs , & arg , sizeof (arg ));
@@ -1127,7 +1127,6 @@ __releases(nn->lock)
11271127 struct fuse_batch_forget_in arg = { .count = 0 };
11281128 struct fuse_in_header ih = {
11291129 .opcode = FUSE_BATCH_FORGET ,
1130- .unique = fuse_get_unique (nn -> fc ),
11311130 .len = sizeof (ih ) + sizeof (arg ),
11321131 };
11331132
@@ -1141,6 +1140,7 @@ __releases(nn->lock)
11411140 spin_unlock (& nn -> lock );
11421141
11431142 arg .count = count ;
1143+ ih .unique = fuse_get_unique (nn -> fc );
11441144 ih .len += count * sizeof (struct fuse_forget_one );
11451145 err = fuse_copy_one (cs , & ih , sizeof (ih ));
11461146 if (!err )
0 commit comments