|
@@ -271,7 +271,7 @@ struct cifsFileInfo *
|
|
cifs_new_fileinfo(struct cifs_fid *fid, struct file *file,
|
|
cifs_new_fileinfo(struct cifs_fid *fid, struct file *file,
|
|
struct tcon_link *tlink, __u32 oplock)
|
|
struct tcon_link *tlink, __u32 oplock)
|
|
{
|
|
{
|
|
- struct dentry *dentry = file->f_path.dentry;
|
|
|
|
|
|
+ struct dentry *dentry = file_dentry(file);
|
|
struct inode *inode = d_inode(dentry);
|
|
struct inode *inode = d_inode(dentry);
|
|
struct cifsInodeInfo *cinode = CIFS_I(inode);
|
|
struct cifsInodeInfo *cinode = CIFS_I(inode);
|
|
struct cifsFileInfo *cfile;
|
|
struct cifsFileInfo *cfile;
|
|
@@ -461,7 +461,7 @@ int cifs_open(struct inode *inode, struct file *file)
|
|
tcon = tlink_tcon(tlink);
|
|
tcon = tlink_tcon(tlink);
|
|
server = tcon->ses->server;
|
|
server = tcon->ses->server;
|
|
|
|
|
|
- full_path = build_path_from_dentry(file->f_path.dentry);
|
|
|
|
|
|
+ full_path = build_path_from_dentry(file_dentry(file));
|
|
if (full_path == NULL) {
|
|
if (full_path == NULL) {
|
|
rc = -ENOMEM;
|
|
rc = -ENOMEM;
|
|
goto out;
|
|
goto out;
|