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 'xfs-6.10-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux

Pull xfs fix from Chandan Babu:
"Ensure xfs incore superblock's allocated inode counter, free inode
counter, and free data block counter are all zero or positive when
they are copied over from xfs_mount->m_[icount,ifree,fdblocks]
respectively"

* tag 'xfs-6.10-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
xfs: make sure sb_fdblocks is non-negative

+4 -3
+4 -3
fs/xfs/libxfs/xfs_sb.c
··· 1038 1038 * and hence we don't need have to update it here. 1039 1039 */ 1040 1040 if (xfs_has_lazysbcount(mp)) { 1041 - mp->m_sb.sb_icount = percpu_counter_sum(&mp->m_icount); 1041 + mp->m_sb.sb_icount = percpu_counter_sum_positive(&mp->m_icount); 1042 1042 mp->m_sb.sb_ifree = min_t(uint64_t, 1043 - percpu_counter_sum(&mp->m_ifree), 1043 + percpu_counter_sum_positive(&mp->m_ifree), 1044 1044 mp->m_sb.sb_icount); 1045 - mp->m_sb.sb_fdblocks = percpu_counter_sum(&mp->m_fdblocks); 1045 + mp->m_sb.sb_fdblocks = 1046 + percpu_counter_sum_positive(&mp->m_fdblocks); 1046 1047 } 1047 1048 1048 1049 xfs_sb_to_disk(bp->b_addr, &mp->m_sb);