]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: directly call xfs_generic_create() for ->create() and ->mkdir()
authorKaixu Xia <kaixuxia@tencent.com>
Fri, 25 Sep 2020 18:10:20 +0000 (11:10 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 25 Sep 2020 18:34:08 +0000 (11:34 -0700)
commit07539e87f5e0409dfbff7d8cf7aaaa162c79ff7e
treef92eb935ee1fcde2fcb402a2d41e516d5febbfd6
parentddaac82fe5ad116e88cd6df8f2c2888841edd8f3
xfs: directly call xfs_generic_create() for ->create() and ->mkdir()

The current create and mkdir handlers both call the xfs_vn_mknod()
which is a wrapper routine around xfs_generic_create() function.
Actually the create and mkdir handlers can directly call
xfs_generic_create() function and reduce the call chain.

Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_iops.c