projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new helper: file_inode(file)
[linux-2.6-block.git]
/
fs
/
coredump.c
diff --git
a/fs/coredump.c
b/fs/coredump.c
index 177493272a6158a3f5192ed3eb061d7cef2e9556..69baf903d3bdba2a5845d5d2912cb2a5b42f10e8 100644
(file)
--- a/
fs/coredump.c
+++ b/
fs/coredump.c
@@
-411,7
+411,7
@@
static void wait_for_dump_helpers(struct file *file)
{
struct pipe_inode_info *pipe;
{
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++;
pipe_lock(pipe);
pipe->readers++;
@@
-600,7
+600,7
@@
void do_coredump(siginfo_t *siginfo)
if (IS_ERR(cprm.file))
goto fail_unlock;
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))
if (inode->i_nlink > 1)
goto close_fail;
if (d_unhashed(cprm.file->f_path.dentry))