diff options
author | Jeff Layton <jlayton@redhat.com> | 2011-10-11 06:41:32 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2011-10-13 00:41:14 -0400 |
commit | ac423446d83e4fd5c3ffba393b887e531cf6bf46 (patch) | |
tree | c37e2ee3909d5d76a452847b2522b1d58ecdcaf0 /fs/cifs/cifssmb.c | |
parent | 875cd04381e695afbbbef025438113e12af84963 (diff) |
cifs: switch CIFSSMBQAllEAs to use memcmp
...as that's more efficient when we know that the lengths are equal.
Reported-by: David Howells <dhowells@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index a80f7bd97b90..b7df4bff3aaa 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -5840,7 +5840,7 @@ QAllEAsRetry: | |||
5840 | 5840 | ||
5841 | if (ea_name) { | 5841 | if (ea_name) { |
5842 | if (ea_name_len == name_len && | 5842 | if (ea_name_len == name_len && |
5843 | strncmp(ea_name, temp_ptr, name_len) == 0) { | 5843 | memcmp(ea_name, temp_ptr, name_len) == 0) { |
5844 | temp_ptr += name_len + 1; | 5844 | temp_ptr += name_len + 1; |
5845 | rc = value_len; | 5845 | rc = value_len; |
5846 | if (buf_size == 0) | 5846 | if (buf_size == 0) |