diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2022-09-24 06:59:59 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2022-09-24 06:59:59 +0200 |
commit | 08d7a6fb7e44ae0f54f7903888dc41e31dfbc9da (patch) | |
tree | ce24bab7422c92bcf94d1a0c762deb4bc4bc2f1c /.get_maintainer.ignore | |
parent | cachefiles: tmpfile error handling cleanup (diff) | |
download | linux-08d7a6fb7e44ae0f54f7903888dc41e31dfbc9da.tar.xz linux-08d7a6fb7e44ae0f54f7903888dc41e31dfbc9da.zip |
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>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions