cifs: reorganize get_cifs_acl
authorChristoph Hellwig <hch@infradead.org>
Wed, 27 May 2009 13:37:33 +0000 (09:37 -0400)
committerSteve French <sfrench@us.ibm.com>
Thu, 28 May 2009 17:08:02 +0000 (17:08 +0000)
commit1bf4072da67c14d6b02cfeef02212aa5a6211df2
tree610f12379929abda22be85fda824efc55626f60b
parentc5077ec42303e07c2c685b0f6cb8eee0f2c7751c
cifs: reorganize get_cifs_acl

Thus spake Christoph:

"But this whole set_cifs_acl function is a real mess anyway and needs
some splitting up."

With this change too, it's possible to call acl_to_uid_mode() with a
NULL inode pointer. That (or something close to it) will eventually be
necessary when cifs_get_inode_info is reorganized.

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