From: Pavel Shilovsky Date: Fri, 17 Feb 2012 13:13:30 +0000 (+0300) Subject: CIFS: Fix mkdir/rmdir bug for the non-POSIX case X-Git-Tag: v3.3-rc7~24^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6de2ce423157d06f73d570ef7044f08c2f8697da;p=pandora-kernel.git CIFS: Fix mkdir/rmdir bug for the non-POSIX case Currently we do inc/drop_nlink for a parent directory for every mkdir/rmdir calls. That's wrong when Unix extensions are disabled because in this case a server doesn't follow the same semantic and returns the old value on the next QueryInfo request. As the result, we update our value with the server one and then decrement it on every rmdir call - go to negative nlink values. Fix this by removing inc/drop_nlink for the parent directory from mkdir/rmdir, setting it for a revalidation and ignoring NumberOfLinks for directories when Unix extensions are disabled. Signed-off-by: Pavel Shilovsky Reviewed-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed