Skip to content

Commit 53c17fe

Browse files
riteshharjanitytso
authored andcommitted
ext4: Remove PAGE_MASK dependency on mpage_submit_folio
This patch simply removes the PAGE_MASK dependency since mpage_submit_folio() is already converted to work with folio. Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/d6eadb090334ea49ceef4e643b371fabfcea328f.1709182251.git.ritesh.list@gmail.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent c2a09f3 commit 53c17fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/ext4/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1865,7 +1865,7 @@ static int mpage_submit_folio(struct mpage_da_data *mpd, struct folio *folio)
18651865
len = folio_size(folio);
18661866
if (folio_pos(folio) + len > size &&
18671867
!ext4_verity_in_progress(mpd->inode))
1868-
len = size & ~PAGE_MASK;
1868+
len = size & (len - 1);
18691869
err = ext4_bio_write_folio(&mpd->io_submit, folio, len);
18701870
if (!err)
18711871
mpd->wbc->nr_to_write--;

0 commit comments

Comments
 (0)