A recent patch removed almost all occurances of
HAVE_CLEAR_RDONLY_ON_PUT. There is still one in
an ldiskfs patch, and it is the only reason for that
patch.
So remove the patch.
Test-Parameters: trivial
Fixes:
20553c985a51 ("LU-12477 kernel: remove dev_read_only handling")
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I5faf01aecd665b49bd3a74f9d968994c8db53c1c
Reviewed-on: https://review.whamcloud.com/38438
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
+++ /dev/null
---- linux-stage/fs/ext4/mballoc.c 2016-11-25 15:31:40.353249364 +0530
-+++ linux-stage.orig/fs/ext4/mballoc.c 2016-11-25 15:35:07.816249363 +0530
-@@ -3369,6 +3369,11 @@
- unsigned short max = EXT4_BLOCKS_PER_GROUP(sb);
- unsigned short i, first, free = 0;
-
-+#ifdef HAVE_CLEAR_RDONLY_ON_PUT
-+ /* be quiet if readonly device */
-+ if (dev_check_rdonly(sb->s_bdev))
-+ return 0;
-+#endif
- i = mb_find_next_zero_bit(bitmap, max, 0);
-
- while (i < max) {
-@@ -3750,6 +3755,13 @@
- bit = next + 1;
- }
-
-+#ifdef HAVE_CLEAR_RDONLY_ON_PUT
-+ /* be quiet if readonly device */
-+ if (dev_check_rdonly(sb->s_bdev)) {
-+ atomic_add(free, &sbi->s_mb_discarded);
-+ return err;
-+ }
-+#endif
- /* "free < pa->pa_free" means we maybe double alloc the same blocks,
- * otherwise maybe leave some free blocks unavailable, no need to BUG.*/
- if ((free > pa->pa_free && !pa->pa_error) || (free < pa->pa_free)) {
rhel7.6/ext4-projid-xfs-ioctls.patch
rhel7.6/ext4-fix-xattr-shifting-when-expanding-inodes.patch
rhel7.6/ext4-attach-jinode-in-writepages.patch
-rhel7.6/ext4-dont-check-in-ro.patch
rhel7.6/ext4-dont-check-before-replay.patch
rhel7.6/ext4-cleanup-goto-next-group.patch
rhel7.6/ext4-reduce-lock-contention-in-__ext4_new_inode.patch
rhel7.6/ext4-projid-xfs-ioctls.patch
rhel7.7/ext4-fix-xattr-shifting-when-expanding-inodes.patch
rhel7.6/ext4-attach-jinode-in-writepages.patch
-rhel7.6/ext4-dont-check-in-ro.patch
rhel7.6/ext4-dont-check-before-replay.patch
rhel7.6/ext4-cleanup-goto-next-group.patch
rhel7.6/ext4-reduce-lock-contention-in-__ext4_new_inode.patch
rhel7.6/ext4-projid-xfs-ioctls.patch
rhel7.7/ext4-fix-xattr-shifting-when-expanding-inodes.patch
rhel7.6/ext4-attach-jinode-in-writepages.patch
-rhel7.6/ext4-dont-check-in-ro.patch
rhel7.6/ext4-dont-check-before-replay.patch
rhel7.6/ext4-cleanup-goto-next-group.patch
rhel7.6/ext4-reduce-lock-contention-in-__ext4_new_inode.patch
ubuntu18/ext4-jcb-optimization.patch
ubuntu18/ext4-attach-jinode-in-writepages.patch
suse15/ext4-dont-check-before-replay.patch
-rhel7.6/ext4-dont-check-in-ro.patch
rhel7.6/ext4-use-GFP_NOFS-in-ext4_inode_attach_jinode.patch
rhel7.6/ext4-optimize-ext4_find_delalloc_range-in-nodelalloc.patch
rhel7.6/ext4-export-orphan-add.patch
ubuntu18/ext4-jcb-optimization.patch
suse15/ext4-attach-jinode-in-writepages.patch
suse15/ext4-dont-check-before-replay.patch
-rhel7.6/ext4-dont-check-in-ro.patch
rhel7.6/ext4-use-GFP_NOFS-in-ext4_inode_attach_jinode.patch
rhel7.6/ext4-optimize-ext4_find_delalloc_range-in-nodelalloc.patch
rhel7.6/ext4-export-orphan-add.patch
ubuntu18/ext4-jcb-optimization.patch
ubuntu18/ext4-attach-jinode-in-writepages.patch
suse15/ext4-dont-check-before-replay.patch
-rhel7.6/ext4-dont-check-in-ro.patch
rhel7.6/ext4-use-GFP_NOFS-in-ext4_inode_attach_jinode.patch
rhel7.6/ext4-optimize-ext4_find_delalloc_range-in-nodelalloc.patch
rhel7.6/ext4-export-orphan-add.patch
ubuntu18/ext4-jcb-optimization.patch
suse15/ext4-attach-jinode-in-writepages.patch
suse15/ext4-dont-check-before-replay.patch
-rhel7.6/ext4-dont-check-in-ro.patch
rhel7.6/ext4-use-GFP_NOFS-in-ext4_inode_attach_jinode.patch
rhel7.6/ext4-optimize-ext4_find_delalloc_range-in-nodelalloc.patch
rhel7.6/ext4-export-orphan-add.patch
rhel7.6/ext4-jcb-optimization.patch
sles12sp2/ext4-attach-jinode-in-writepages.patch
sles12sp2/ext4-dont-check-before-replay.patch
-sles12sp2/ext4-dont-check-in-ro.patch
sles12sp2/ext4-fix-xattr-shifting-when-expanding-inodes.patch
rhel7.6/ext4-use-GFP_NOFS-in-ext4_inode_attach_jinode.patch
rhel7.6/ext4-export-orphan-add.patch
rhel7.6/ext4-jcb-optimization.patch
sles12sp2/ext4-attach-jinode-in-writepages.patch
sles12sp3/ext4-dont-check-before-replay.patch
-sles12sp2/ext4-dont-check-in-ro.patch
sles12sp2/ext4-fix-xattr-shifting-when-expanding-inodes.patch
rhel7.6/ext4-use-GFP_NOFS-in-ext4_inode_attach_jinode.patch
rhel7.6/ext4-export-orphan-add.patch