On Wed, May 29, 2024 at 04:41:32PM -0400, Josef Bacik wrote: > +++ b/drivers/md/md.c > @@ -7231,7 +7231,7 @@ static int set_bitmap_file(struct mddev *mddev, int fd) > pr_warn("%s: error: bitmap file must open for write\n", > mdname(mddev)); > err = -EBADF; > - } else if (atomic_read(&inode->i_writecount) != 1) { > + } else if (atomic_read(&inode->i_writecount[INODE_DENY_WRITE_ALL]) != 1) { I think this needs an abstraction because I have no idea what this means. } else if (!write_access_ok(inode, INODE_DENY_WRITE_ALL)) { perhaps?