]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super1.c
Avoid using BLKFLSBUF.
[thirdparty/mdadm.git] / super1.c
index 3236a7e28b301f3ef481b50c6180b8473734133e..fe83af5b3d00619b04622e8eb82c19411f2d1d71 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -1633,9 +1633,6 @@ static int load_super1(struct supertype *st, int fd, char *devname)
                return -EINVAL;
        }
 
-       ioctl(fd, BLKFLSBUF, 0); /* make sure we read current data */
-
-
        if (lseek64(fd, sb_offset << 9, 0)< 0LL) {
                if (devname)
                        pr_err("Cannot seek to superblock on %s: %s\n",