]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1bbc3f18d6d23bc6ecc0575beabeb51ddfe216cb
treeba5292a38d8910c6b3a3303a3c7f88491e1708af
parent1bcbd4ac4eb9ef22ef57ce5353148dfebdf28679
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