Patch "udf: Remove GFP_NOFS allocation in udf_expand_file_adinicb()" has been added to the 6.8-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    udf: Remove GFP_NOFS allocation in udf_expand_file_adinicb()

to the 6.8-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     udf-remove-gfp_nofs-allocation-in-udf_expand_file_ad.patch
and it can be found in the queue-6.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 8a4132622255bd65cba0f6a87388d25c0bc97514
Author: Jan Kara <jack@xxxxxxx>
Date:   Tue Jan 9 11:15:43 2024 +0100

    udf: Remove GFP_NOFS allocation in udf_expand_file_adinicb()
    
    [ Upstream commit 38f8af2a7191e5da21c557210d810c6d0d34f6c4 ]
    
    udf_expand_file_adinicb() is called under inode->i_rwsem and
    mapping->invalidate_lock. i_rwsem is safe wrt fs reclaim,
    invalidate_lock on this inode is safe as well (we hold inode reference
    so reclaim will not touch it, furthermore even lockdep should not
    complain as invalidate_lock is acquired from udf_evict_inode() only when
    truncating inode which should not happen from fs reclaim).
    
    Signed-off-by: Jan Kara <jack@xxxxxxx>
    Stable-dep-of: db6754090a4f ("udf: Convert udf_expand_file_adinicb() to use a folio")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/udf/inode.c b/fs/udf/inode.c
index d8493449d4c57..2f831a3a91afe 100644
--- a/fs/udf/inode.c
+++ b/fs/udf/inode.c
@@ -357,7 +357,7 @@ int udf_expand_file_adinicb(struct inode *inode)
 		return 0;
 	}
 
-	page = find_or_create_page(inode->i_mapping, 0, GFP_NOFS);
+	page = find_or_create_page(inode->i_mapping, 0, GFP_KERNEL);
 	if (!page)
 		return -ENOMEM;
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux