Re: [RFC PATCH 4/4] xfs: allow linkat() on O_TMPFILE files

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

 



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.

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs




[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux