Home
last modified time | relevance | path

Searched hist:"08 d7a6fb" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/cachefiles/
H A Dnamei.c08d7a6fb Fri Sep 23 23:59:59 CDT 2022 Miklos Szeredi <mszeredi@redhat.com> 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: Miklos Szeredi <mszeredi@redhat.com>