projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2a09f3
)
ext4: Remove PAGE_MASK dependency on mpage_submit_folio
author
Ritesh Harjani (IBM)
<ritesh.list@gmail.com>
Thu, 29 Feb 2024 06:10:14 +0000
(11:40 +0530)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 2 May 2024 14:50:44 +0000
(10:50 -0400)
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>
fs/ext4/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/inode.c
b/fs/ext4/inode.c
index bab9223d94ac44720ba0892fab96b2efc6b938eb..e8b0773e5d2d4a049a1aaf36ce40d329806c0c0e 100644
(file)
--- a/
fs/ext4/inode.c
+++ b/
fs/ext4/inode.c
@@
-1865,7
+1865,7
@@
static int mpage_submit_folio(struct mpage_da_data *mpd, struct folio *folio)
len = folio_size(folio);
if (folio_pos(folio) + len > size &&
!ext4_verity_in_progress(mpd->inode))
- len = size &
~PAGE_MASK
;
+ len = size &
(len - 1)
;
err = ext4_bio_write_folio(&mpd->io_submit, folio, len);
if (!err)
mpd->wbc->nr_to_write--;