cifs: ensure we revalidate the inode after readdir if cifsacl is enabled
authorJeff Layton <jlayton@redhat.com>
Sun, 25 Nov 2012 13:00:40 +0000 (08:00 -0500)
committerSteve French <smfrench@gmail.com>
Wed, 5 Dec 2012 19:27:30 +0000 (13:27 -0600)
commitccb5c001b3035ca470fe21424e439530ba838510
treeb9d6b233c03b7129334381b6e634533ab9eee10c
parent3c15b4cf5580658951115f85efb2dea6a1380999
cifs: ensure we revalidate the inode after readdir if cifsacl is enabled

Otherwise, "ls -l" will simply show the ownership of the files as
the default mnt_uid/gid. This may make "ls -l" performance on large
directories super-suck in some cases, but that's the cost of cifsacl.

One possibility to make it suck less would be to somehow proactively
dispatch the ACL requests asynchronously from readdir codepath, but
that's non-trivial to implement.

Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/readdir.c