Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'gfs2-v5.2.fixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2

Pull gfs2 fix from Andreas Gruenbacher:
"Fix rounding error in gfs2_iomap_page_prepare"

* tag 'gfs2-v5.2.fixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2:
gfs2: Fix rounding error in gfs2_iomap_page_prepare

+4 -1
+4 -1
fs/gfs2/bmap.c
··· 991 991 static int gfs2_iomap_page_prepare(struct inode *inode, loff_t pos, 992 992 unsigned len, struct iomap *iomap) 993 993 { 994 + unsigned int blockmask = i_blocksize(inode) - 1; 994 995 struct gfs2_sbd *sdp = GFS2_SB(inode); 996 + unsigned int blocks; 995 997 996 - return gfs2_trans_begin(sdp, RES_DINODE + (len >> inode->i_blkbits), 0); 998 + blocks = ((pos & blockmask) + len + blockmask) >> inode->i_blkbits; 999 + return gfs2_trans_begin(sdp, RES_DINODE + blocks, 0); 997 1000 } 998 1001 999 1002 static void gfs2_iomap_page_done(struct inode *inode, loff_t pos,