Skip to content

Commit

Permalink
fs: cifs: new helper: file_inode(file)
Browse files Browse the repository at this point in the history
Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
  • Loading branch information
Libo Chen authored and Steve French committed May 21, 2014
1 parent 4f73c7d commit 2d4f84b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static long cifs_ioctl_clone(unsigned int xid, struct file *dst_file,
goto out_fput;
}

src_inode = src_file.file->f_dentry->d_inode;
src_inode = file_inode(src_file.file);

/*
* Note: cifs case is easier than btrfs since server responsible for
Expand Down

0 comments on commit 2d4f84b

Please sign in to comment.