diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2018-05-17 10:53:05 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-05-31 11:06:11 +0200 |
commit | 80ea09a002bf4384fda5f087b1b198b3a274f9da (patch) | |
tree | 08ee21a4a557b0dfbd3878ab03d6225d3c5c7dd4 /fs/xfs/xfs_trans_bmap.c | |
parent | b148cba403f4fc9c99f0a596e35047395b748169 (diff) | |
download | linux-80ea09a002bf4384fda5f087b1b198b3a274f9da.tar.bz2 |
vfs: factor out inode_insert5()
Split out common helper for race free insertion of an already allocated
inode into the cache. Use this from iget5_locked() and
insert_inode_locked4(). Make iget5_locked() use new_inode()/iput() instead
of alloc_inode()/destroy_inode() directly.
Also export to modules for use by filesystems which want to preallocate an
inode before file/directory creation.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_trans_bmap.c')
0 files changed, 0 insertions, 0 deletions