From: Jeff Layton Date: Fri, 6 Nov 2009 19:18:49 +0000 (-0500) Subject: cifs: don't use CIFSGetSrvInodeNumber in is_path_accessible X-Git-Tag: v2.6.32-rc7~61^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f475f6775465283494346663f201ad04810d2e8a;p=pandora-kernel.git cifs: don't use CIFSGetSrvInodeNumber in is_path_accessible Because it's lighter weight, CIFS tries to use CIFSGetSrvInodeNumber to verify the accessibility of the root inode and then falls back to doing a full QPathInfo if that fails with -EOPNOTSUPP. I have at least a report of a server that returns NT_STATUS_INTERNAL_ERROR rather than something that translates to EOPNOTSUPP. Rather than trying to be clever with that call, just have is_path_accessible do a normal QPathInfo. That call is widely supported and it shouldn't increase the overhead significantly. Cc: Stable Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed