diff options
author | Jeff Layton <jlayton@redhat.com> | 2008-05-09 17:26:11 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-05-11 13:45:43 -0400 |
commit | 02eadeffda169a45946c79270ec19f45eeafb8e7 (patch) | |
tree | b416ae6cd3d48b4188716cfd7fe7b90808bb28ac /fs/cifs/connect.c | |
parent | 1b20d672188bf80baef60d515a123f556871a5ce (diff) |
[CIFS] add local struct inode pointer to cifs_setattr
Clean up cifs_setattr a bit by adding a local inode pointer, and
changing all of the direntry->d_inode references to it. This also adds a
bit of micro-optimization. d_inode shouldn't change over the life of
this function, so we only need to dereference it once.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 6b520aad7af3..965050867599 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -1339,7 +1339,7 @@ cifs_find_tcp_session(struct in_addr *target_ip_addr, | |||
1339 | memcmp(&ses->server->addr.sockAddr6.sin6_addr, | 1339 | memcmp(&ses->server->addr.sockAddr6.sin6_addr, |
1340 | target_ip6_addr, sizeof(*target_ip6_addr))) | 1340 | target_ip6_addr, sizeof(*target_ip6_addr))) |
1341 | continue; | 1341 | continue; |
1342 | /* BB lock server and tcp session and increment use count here?? */ | 1342 | /* BB lock server and tcp session; increment use count here?? */ |
1343 | 1343 | ||
1344 | /* found a match on the TCP session */ | 1344 | /* found a match on the TCP session */ |
1345 | *psrvTcp = ses->server; | 1345 | *psrvTcp = ses->server; |