don't open-code file_inode()

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2016-12-04 18:24:56 -05:00
commit 450630975d
18 changed files with 40 additions and 46 deletions

View file

@ -33,7 +33,7 @@ static int ovl_check_fd(const void *data, struct file *f, unsigned int fd)
{
const struct dentry *dentry = data;
if (f->f_inode == d_inode(dentry))
if (file_inode(f) == d_inode(dentry))
pr_warn_ratelimited("overlayfs: Warning: Copying up %pD, but open R/O on fd %u which will cease to be coherent [pid=%d %s]\n",
f, fd, current->pid, current->comm);
return 0;