Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
ICE, pfk: fix to set dio_inode precisely
Browse files Browse the repository at this point in the history
When using loopback device with dio, we can't rely on page flag.

Bug: 141601405
Bug: 141860559
Bug: 140882488
Change-Id: I09526c25e8d5333853e777f29333f9fa8da37459
Signed-off-by: Jaegeuk Kim <[email protected]>
Signed-off-by: Dhruv <[email protected]>
Signed-off-by: negrroo <[email protected]>
  • Loading branch information
Jaegeuk Kim authored and reocat committed Jan 24, 2024
1 parent 63b6c05 commit 2ce9cdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion security/pfe/pfk.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ static struct inode *pfk_bio_get_inode(const struct bio *bio)
/* Using direct-io (O_DIRECT) without page cache */
inode = dio_bio_get_inode((struct bio *)bio);
if (inode) {
pr_debug("inode on direct-io, inode = 0x%pK.\n", inode);
pr_debug("inode on direct-io, inode = 0x%p.\n", inode);

return inode;
}

Expand Down

0 comments on commit 2ce9cdd

Please sign in to comment.