cifs: cleanups for cifs_mkdir_qinfo
authorJeff Layton <jlayton@redhat.com>
Wed, 19 Sep 2012 13:22:45 +0000 (06:22 -0700)
committerSteve French <smfrench@gmail.com>
Tue, 25 Sep 2012 02:46:34 +0000 (21:46 -0500)
commit101b92d9590a645d6fb643654b3a92556203b745
treefb5e6ce303a74fae0bcca5904e39d0ca9d403c5b
parent233839b1df65a24c8b67b748fe7b18d86d0ad6d7
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