]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: replace on-stack xfs_trans_res with pointer in xfs_create()
authorBrian Foster <bfoster@redhat.com>
Fri, 28 Nov 2014 03:00:16 +0000 (14:00 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 28 Nov 2014 03:00:16 +0000 (14:00 +1100)
commit3f401e104331964237ad452934d4139867adc454
tree0ab56939442dbf4112638c48e8d77948df9f9c44
parent731ed5d8d65fb4db5fe6b144f52adf0360c2fb9e
xfs: replace on-stack xfs_trans_res with pointer in xfs_create()

There's no need to store a full struct xfs_trans_res on the stack in
xfs_create() and copy the fields. Use a pointer to the appropriate
structures embedded in the xfs_mount.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_inode.c