On Wed, May 11, 2022 at 11:41:18PM +0300, Vitaliy Makkoveev wrote:
> > Both of the resizes should happen first, in case there is fallout in
> > userland which isn't visible yet.
> 
> No problem. 

OK bluhm@

> Index: sys/sys/filedesc.h
> ===================================================================
> RCS file: /cvs/src/sys/sys/filedesc.h,v
> retrieving revision 1.45
> diff -u -p -r1.45 filedesc.h
> --- sys/sys/filedesc.h        4 Jul 2020 08:06:08 -0000       1.45
> +++ sys/sys/filedesc.h        11 May 2022 20:14:48 -0000
> @@ -79,8 +79,8 @@ struct filedesc {
>       u_int   *fd_lomap;              /* [f] bitmap of free fds */
>       int     fd_lastfile;            /* [f] high-water mark of fd_ofiles */
>       int     fd_freefile;            /* [f] approx. next free file */
> -     u_short fd_cmask;               /* [f/w] mask for file creation */
> -     u_short fd_refcnt;              /* [K] reference count */
> +     mode_t  fd_cmask;               /* [f/w] mask for file creation */
> +     u_int   fd_refcnt;              /* [K] reference count */
>       struct rwlock fd_lock;          /* lock for the file descs */
>       struct mutex fd_fplock;         /* lock for reading fd_ofiles without
>                                        * fd_lock */

Reply via email to