nilfs2: remove page_address() from nilfs_add_link
In preparation for removing kmap from directory handling, use offset_in_page() to calculate 'from'. Matches ext2. Link: https://lkml.kernel.org/r/20231127143036.2425-5-konishi.ryusuke@gmail.com Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
6bb09fa1b4
commit
2197f5aed4
@ -493,7 +493,7 @@ int nilfs_add_link(struct dentry *dentry, struct inode *inode)
|
||||
return -EINVAL;
|
||||
|
||||
got_it:
|
||||
from = (char *)de - (char *)page_address(page);
|
||||
from = offset_in_page(de);
|
||||
to = from + rec_len;
|
||||
err = nilfs_prepare_chunk(page, from, to);
|
||||
if (err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user