diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-12-30 07:48:21 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-01-01 00:07:43 +0100 |
commit | 261bca86ed4f7f391d1938167624e78da61dcc6b (patch) | |
tree | 4601cf090fbfec31fbd554a27c67c717a7caba4b /fs/ext2/namei.c | |
parent | filesystem notification: create fs/notify to contain all fs notification (diff) | |
download | linux-261bca86ed4f7f391d1938167624e78da61dcc6b.tar.xz linux-261bca86ed4f7f391d1938167624e78da61dcc6b.zip |
nfsd/create race fixes, infrastructure
new helpers - insert_inode_locked() and insert_inode_locked4().
Hash new inode, making sure that there's no such inode in icache
already. If there is and it does not end up unhashed (as would
happen if we have nfsd trying to resolve a bogus fhandle), fail.
Otherwise insert our inode into hash and succeed.
In either case have i_state set to new+locked; cleanup ends up
being simpler with such calling conventions.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ext2/namei.c')
0 files changed, 0 insertions, 0 deletions