stat: handle idmapped mounts
[linux-block.git] / fs / ubifs / dir.c
index 694e7714545bc7c35417bc06221248b0b26ab658..a8881ed6162012199dbd521e232ae85938c490cf 100644 (file)
@@ -1589,7 +1589,7 @@ int ubifs_getattr(const struct path *path, struct kstat *stat,
                                STATX_ATTR_ENCRYPTED |
                                STATX_ATTR_IMMUTABLE);
 
-       generic_fillattr(inode, stat);
+       generic_fillattr(&init_user_ns, inode, stat);
        stat->blksize = UBIFS_BLOCK_SIZE;
        stat->size = ui->ui_size;