File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1398,6 +1398,7 @@ static void fuse_dio_unlock(struct kiocb *iocb, bool exclusive)
1398
1398
static ssize_t fuse_cache_write_iter (struct kiocb * iocb , struct iov_iter * from )
1399
1399
{
1400
1400
struct file * file = iocb -> ki_filp ;
1401
+ struct mnt_idmap * idmap = file_mnt_idmap (file );
1401
1402
struct address_space * mapping = file -> f_mapping ;
1402
1403
ssize_t written = 0 ;
1403
1404
struct inode * inode = mapping -> host ;
@@ -1412,7 +1413,7 @@ static ssize_t fuse_cache_write_iter(struct kiocb *iocb, struct iov_iter *from)
1412
1413
return err ;
1413
1414
1414
1415
if (fc -> handle_killpriv_v2 &&
1415
- setattr_should_drop_suidgid (& nop_mnt_idmap ,
1416
+ setattr_should_drop_suidgid (idmap ,
1416
1417
file_inode (file ))) {
1417
1418
goto writethrough ;
1418
1419
}
You can’t perform that action at this time.
0 commit comments