Skip to content
Commit 08d7a6fb authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

cachefiles: only pass inode to *mark_inode_inuse() helpers



The only reason to pass dentry was because of a pr_notice() text.  Move
that to the two callers where it makes sense and add a WARN_ON() to the
third.

file_inode(file) is never NULL on an opened file. Remove check in
cachefiles_unmark_inode_in_use().

Do not open code cachefiles_do_unmark_inode_in_use() in
cachefiles_put_directory().

Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 38017d44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment