[RFC PATCH 4/4] xfs: allow linkat() on O_TMPFILE files
Christoph Hellwig
hch at infradead.org
Fri Dec 13 10:31:18 CST 2013
On Fri, Dec 13, 2013 at 07:34:43PM +0800, Zhi Yong Wu wrote:
> > Uggh. For the small amount of extra space needed for the unlinked
> > list reservation, I would simply add it to the tr_link reservation
> > and be done with it. That gets rid of the need for the noise here.
> >
> >
> > As per above, fold this into xfs_calc_link_reservation() by adding a:
> >
> >
> > + xfs_calc_iunlink_remove_resv(mp);
> This way seems to not work...
> In xfs_calc_link_reservation(), How to determine if it is for one
> regular file or O_TMPFILE file? since this functions is only passed in
> mp?
The way I understand Dave above is that you should always reserve
the higher amount.
More information about the xfs
mailing list