+1
−3
+6
−18
+11
−10
Loading
mainline inclusion from mainline-v6.10-rc1 commit f30f656e25eb72c4309e76b16fa45062e183a2ee category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB7V02 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f30f656e25eb72c4309e76b16fa45062e183a2ee -------------------------------- xfs_mod_freecounter has two entirely separate code paths for adding or subtracting from the free counters. Only the subtract case looks at the rsvd flag and can return an error. Split xfs_mod_freecounter into separate helpers for subtracting or adding the freecounter, and remove all the impossible to reach error handling for the addition case. Fixes: 0d485ada ("xfs: use generic percpu counters for free block counter") Signed-off-by:Christoph Hellwig <hch@lst.de> Reviewed-by:
Dave Chinner <dchinner@redhat.com> Reviewed-by:
"Darrick J. Wong" <djwong@kernel.org> Signed-off-by:
Chandan Babu R <chandanbabu@kernel.org> Conflicts: fs/xfs/libxfs/xfs_bmap.c fs/xfs/scrub/repair.c fs/xfs/xfs_fsops.h fs/xfs/xfs_trans.c [One part is due to the function not existing, and the other part is due to a context conflict.] Signed-off-by:
Zizhi Wo <wozizhi@huawei.com>