]> git.baikalelectronics.ru Git - kernel.git/commit
[CIFS] add local struct inode pointer to cifs_setattr
authorJeff Layton <jlayton@redhat.com>
Fri, 9 May 2008 21:26:11 +0000 (21:26 +0000)
committerSteve French <sfrench@us.ibm.com>
Sun, 11 May 2008 17:45:43 +0000 (17:45 +0000)
commitad93f3f40364f89cdc31f3a8358935d26d2d6874
treeb416ae6cd3d48b4188716cfd7fe7b90808bb28ac
parentf8b9b2395302a91a00f05eb9b83374803f1b261a
[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>
fs/cifs/connect.c
fs/cifs/inode.c