Skip to content

Commit 4ba9758

Browse files
qianfengrongtytso
authored andcommitted
ext4: remove redundant __GFP_NOWARN
GFP_NOWAIT already includes __GFP_NOWARN, so let's remove the redundant __GFP_NOWARN. Signed-off-by: Qianfeng Rong <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 59d8731 commit 4ba9758

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/ext4/page-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ int ext4_bio_write_folio(struct ext4_io_submit *io, struct folio *folio,
547547
* first page of the bio. Otherwise it can deadlock.
548548
*/
549549
if (io->io_bio)
550-
gfp_flags = GFP_NOWAIT | __GFP_NOWARN;
550+
gfp_flags = GFP_NOWAIT;
551551
retry_encrypt:
552552
bounce_page = fscrypt_encrypt_pagecache_blocks(folio,
553553
enc_bytes, 0, gfp_flags);

fs/ext4/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ struct buffer_head *ext4_sb_bread_unmovable(struct super_block *sb,
268268
void ext4_sb_breadahead_unmovable(struct super_block *sb, sector_t block)
269269
{
270270
struct buffer_head *bh = bdev_getblk(sb->s_bdev, block,
271-
sb->s_blocksize, GFP_NOWAIT | __GFP_NOWARN);
271+
sb->s_blocksize, GFP_NOWAIT);
272272

273273
if (likely(bh)) {
274274
if (trylock_buffer(bh))

0 commit comments

Comments
 (0)