Lines 92-98
Link Here
|
92 |
* and that would try to acquire the inode's semaphore; if the two inodes |
92 |
* and that would try to acquire the inode's semaphore; if the two inodes |
93 |
* are the same we'll deadlock. |
93 |
* are the same we'll deadlock. |
94 |
*/ |
94 |
*/ |
95 |
if (actualFile->f_dentry && inode == actualFile->f_dentry->d_inode) { |
95 |
if (actualFile->f_path.dentry && inode == actualFile->f_path.dentry->d_inode) { |
96 |
Warning("FileOpOpen: identical inode encountered, open cannot succeed.\n"); |
96 |
Warning("FileOpOpen: identical inode encountered, open cannot succeed.\n"); |
97 |
if (filp_close(actualFile, current->files) < 0) { |
97 |
if (filp_close(actualFile, current->files) < 0) { |
98 |
Warning("FileOpOpen: unable to close opened file.\n"); |
98 |
Warning("FileOpOpen: unable to close opened file.\n"); |