[PATCH v2 2/3] xfs: add O_TMPFILE support
Zhi Yong Wu
zwu.kernel at gmail.com
Mon Dec 23 19:58:02 CST 2013
On Tue, Dec 24, 2013 at 8:55 AM, Dave Chinner <david at fromorbit.com> wrote:
> On Wed, Dec 18, 2013 at 08:22:40AM +0800, Zhi Yong Wu wrote:
>> From: Zhi Yong Wu <wuzhy at linux.vnet.ibm.com>
>>
>> Add two functions xfs_create_tmpfile() and xfs_vn_tmpfile()
>> to support O_TMPFILE file creation.
>>
>> In contrast to xfs_create(), xfs_create_tmpfile() has a different
>> log reservation to the regular file creation because there is no
>> directory modification, and doesn't check if an entry can be added
>> to the directory, but the reservation quotas is required appropriately,
>> and finally its inode is added to the unlinked list.
>>
>> xfs_vn_tmpfile() add one O_TMPFILE method to VFS interface and directly
>> invoke xfs_create_tmpfile().
>
> There's minor stuff I could ask you to change, but I think this is
> good enough for initial support of O_TMPFILE.
>
> Reviewed-by: Dave Chinner <dchinner at redhat.com>
Great, thanks a lot for your amazing Chrismas gift. Dave and
Christoph, Merry Chrismas!
>
> --
> Dave Chinner
> david at fromorbit.com
--
Regards,
Zhi Yong Wu
More information about the xfs
mailing list