diff options
author | Steve French <sfrench@us.ibm.com> | 2005-06-22 21:26:47 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-06-22 21:26:47 -0400 |
commit | ea0daab4ae4a2f853f06c76961c0ed324fd0804c (patch) | |
tree | f6fbe2db5772695181b7a7257b05e43343bd8d75 /fs/cifs/file.c | |
parent | 58aab753de605c14b9878a897e7349c3063afeff (diff) | |
parent | 1bdf7a78c2b21fb94dfe7994dbe89310b18479d2 (diff) |
Merge with rsync://rsync.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6.git
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r-- | fs/cifs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 0cec0e76d85e..f55c0c7aeeb0 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -196,7 +196,7 @@ int cifs_open(struct inode *inode, struct file *file) | |||
196 | } | 196 | } |
197 | 197 | ||
198 | down(&inode->i_sb->s_vfs_rename_sem); | 198 | down(&inode->i_sb->s_vfs_rename_sem); |
199 | full_path = build_path_from_dentry(file->f_dentry); | 199 | full_path = build_path_from_dentry(file->f_dentry, cifs_sb); |
200 | up(&inode->i_sb->s_vfs_rename_sem); | 200 | up(&inode->i_sb->s_vfs_rename_sem); |
201 | if (full_path == NULL) { | 201 | if (full_path == NULL) { |
202 | FreeXid(xid); | 202 | FreeXid(xid); |
@@ -359,7 +359,7 @@ static int cifs_reopen_file(struct inode *inode, struct file *file, | |||
359 | those that already have the rename sem can end up causing writepage | 359 | those that already have the rename sem can end up causing writepage |
360 | to get called and if the server was down that means we end up here, | 360 | to get called and if the server was down that means we end up here, |
361 | and we can never tell if the caller already has the rename_sem */ | 361 | and we can never tell if the caller already has the rename_sem */ |
362 | full_path = build_path_from_dentry(file->f_dentry); | 362 | full_path = build_path_from_dentry(file->f_dentry, cifs_sb); |
363 | if (full_path == NULL) { | 363 | if (full_path == NULL) { |
364 | up(&pCifsFile->fh_sem); | 364 | up(&pCifsFile->fh_sem); |
365 | FreeXid(xid); | 365 | FreeXid(xid); |