Re: [PATCH 3/4] xfs: clean up the xfs_reserve_blocks interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 27, 2023 at 06:09:33PM -0800, Darrick J. Wong wrote:
> > +	spin_lock(&mp->m_sb_lock);
> > +	fsop.resblks = mp->m_resblks;
> > +	fsop.resblks_avail = mp->m_resblks_avail;
> > +	spin_unlock(&mp->m_sb_lock);
> 
> Hm.  I sorta preferred keeping these details hidden in xfs_fsops.c
> rather than scattering them around and lengthening xfs_ioctl.c, but
> I think the calling convention cleanup is worthy enough for:

If you prefer I can keep a helper to fill in a xfs_fsop_resblks
structure under m_sb_lock in fsops.c, but I'm not sure that's worth it.





[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux