Patch "erofs: fix fsdax unavailability for chunk-based regular files" has been added to the 5.15-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

    erofs: fix fsdax unavailability for chunk-based regular files

to the 5.15-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:
     erofs-fix-fsdax-unavailability-for-chunk-based-regul.patch
and it can be found in the queue-5.15 subdirectory.

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



commit 5de6c17168f163c7f0f91dc8d407fb8e5192bd2b
Author: Xin Yin <yinxin.x@xxxxxxxxxxxxx>
Date:   Tue Jul 11 14:21:30 2023 +0800

    erofs: fix fsdax unavailability for chunk-based regular files
    
    [ Upstream commit 18bddc5b67038722cb88fcf51fbf41a0277092cb ]
    
    DAX can be used to share page cache between VMs, reducing guest memory
    overhead. And chunk based data format is widely used for VM and
    container image. So enable dax support for it, make erofs better used
    for VM scenarios.
    
    Fixes: c5aa903a59db ("erofs: support reading chunk-based uncompressed files")
    Signed-off-by: Xin Yin <yinxin.x@xxxxxxxxxxxxx>
    Reviewed-by: Gao Xiang <hsiangkao@xxxxxxxxxxxxxxxxx>
    Reviewed-by: Chao Yu <chao@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230711062130.7860-1-yinxin.x@xxxxxxxxxxxxx
    Signed-off-by: Gao Xiang <hsiangkao@xxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/erofs/inode.c b/fs/erofs/inode.c
index 3ff36514cff25..638bb70d0d65b 100644
--- a/fs/erofs/inode.c
+++ b/fs/erofs/inode.c
@@ -193,7 +193,8 @@ static struct page *erofs_read_inode(struct inode *inode,
 
 	inode->i_flags &= ~S_DAX;
 	if (test_opt(&sbi->opt, DAX_ALWAYS) && S_ISREG(inode->i_mode) &&
-	    vi->datalayout == EROFS_INODE_FLAT_PLAIN)
+	    (vi->datalayout == EROFS_INODE_FLAT_PLAIN ||
+	     vi->datalayout == EROFS_INODE_CHUNK_BASED))
 		inode->i_flags |= S_DAX;
 	if (!nblks)
 		/* measure inode.i_blocks as generic filesystems */



[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