]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: initialize default acls for ->tmpfile()
authorBrian Foster <bfoster@redhat.com>
Mon, 5 May 2014 21:34:28 +0000 (07:34 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 5 May 2014 21:34:28 +0000 (07:34 +1000)
commitfa222482f06088892dcfa71f8dc6ec32e5963e8e
tree3956057bf1b939329cacf1d2e99654632df92b7c
parent57321ed5b7a093738d8b22b71d66d8fce9bd1d5c
xfs: initialize default acls for ->tmpfile()

The current tmpfile handler does not initialize default ACLs. Doing so
within xfs_vn_tmpfile() makes it roughly equivalent to xfs_vn_mknod(),
which is already used as a common create handler.

xfs_vn_mknod() does not currently have a mechanism to determine whether
to link the file into the namespace. Therefore, further abstract
xfs_vn_mknod() into a new xfs_generic_create() handler with a tmpfile
parameter. This new handler calls xfs_create_tmpfile() and d_tmpfile()
on the dentry when called via ->tmpfile().

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_iops.c