You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
+2
-2
@@ -411,7 +411,7 @@ static void wait_for_dump_helpers(struct file *file)
|
||||
{
|
||||
struct pipe_inode_info *pipe;
|
||||
|
||||
pipe = file->f_path.dentry->d_inode->i_pipe;
|
||||
pipe = file_inode(file)->i_pipe;
|
||||
|
||||
pipe_lock(pipe);
|
||||
pipe->readers++;
|
||||
@@ -600,7 +600,7 @@ void do_coredump(siginfo_t *siginfo)
|
||||
if (IS_ERR(cprm.file))
|
||||
goto fail_unlock;
|
||||
|
||||
inode = cprm.file->f_path.dentry->d_inode;
|
||||
inode = file_inode(cprm.file);
|
||||
if (inode->i_nlink > 1)
|
||||
goto close_fail;
|
||||
if (d_unhashed(cprm.file->f_path.dentry))
|
||||
|
||||
Reference in New Issue
Block a user