]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: cleanups for cifs_mkdir_qinfo
authorJeff Layton <jlayton@redhat.com>
Mon, 10 Sep 2012 12:54:17 +0000 (08:54 -0400)
committerSteve French <sfrench@us.ibm.com>
Sat, 15 Sep 2012 18:05:39 +0000 (13:05 -0500)
commitd9883bc4d75a70d0bf971b7745e5ad59d28fba87
tree971bc3102242f0ef923e9e224e9db5faf41dd35a
parented15cedde51f5c05133e94f3540c485e438577b1
cifs: cleanups for cifs_mkdir_qinfo

Rename inode pointers for better clarity. Move the d_instantiate call to
the end of the function to prevent other tasks from seeing it before
we've finished constructing it. Since we should have exclusive access to
the inode at this point, remove the spinlock around i_nlink update.

Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/inode.c