cifs: convert cifs_get_inode_info and non-posix readdir to use cifs_iget
authorJeff Layton <jlayton@redhat.com>
Thu, 9 Jul 2009 05:46:37 +0000 (01:46 -0400)
committerSteve French <sfrench@us.ibm.com>
Thu, 9 Jul 2009 23:05:48 +0000 (23:05 +0000)
commit0b8f18e358384a52c1ed7fa7129c08e7eaf86bb6
treeba5292a38d8910c6b3a3303a3c7f88491e1708af
parentb77863bfa153e886f9f8faf1a791ba57a36efed0
cifs: convert cifs_get_inode_info and non-posix readdir to use cifs_iget

cifs: convert cifs_get_inode_info and non-posix readdir to use cifs_iget

Rather than allocating an inode and filling it out, have
cifs_get_inode_info fill out a cifs_fattr and call cifs_iget. This means
a pretty hefty reorganization of cifs_get_inode_info.

For the readdir codepath, add a couple of new functions for filling out
cifs_fattr's from different FindFile response infolevels.

Finally, remove cifs_new_inode since there are no more callers.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsacl.c
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/inode.c
fs/cifs/readdir.c