Hi all,

Today's linux-next merge of the block tree got a conflict in:

  drivers/block/loop.c

between commit:

  efbe3c2493d2 ("fs: Remove unneeded IS_DAX() check in io_is_direct()")

from the djw-vfs tree and commit:

  3448914e8cc5 ("loop: Add LOOP_CONFIGURE ioctl")

from the block tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc drivers/block/loop.c
index 14372df0f354,a565c5aafa52..000000000000
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@@ -1022,21 -1146,20 +1146,21 @@@ static int loop_configure(struct loop_d
        lo->old_gfp_mask = mapping_gfp_mask(mapping);
        mapping_set_gfp_mask(mapping, lo->old_gfp_mask & ~(__GFP_IO|__GFP_FS));
  
-       if (!(lo_flags & LO_FLAGS_READ_ONLY) && file->f_op->fsync)
+       if (!(lo->lo_flags & LO_FLAGS_READ_ONLY) && file->f_op->fsync)
                blk_queue_write_cache(lo->lo_queue, true, false);
  
-       if ((lo->lo_backing_file->f_flags & O_DIRECT) && inode->i_sb->s_bdev) {
+       if (config->block_size)
+               bsize = config->block_size;
 -      else if (io_is_direct(lo->lo_backing_file) && inode->i_sb->s_bdev)
++      else if ((lo->lo_backing_file->f_flags & O_DIRECT) &&
++               inode->i_sb->s_bdev)
                /* In case of direct I/O, match underlying block size */
-               unsigned short bsize = bdev_logical_block_size(
-                       inode->i_sb->s_bdev);
+               bsize = bdev_logical_block_size(inode->i_sb->s_bdev);
+       else
+               bsize = 512;
  
-               blk_queue_logical_block_size(lo->lo_queue, bsize);
-               blk_queue_physical_block_size(lo->lo_queue, bsize);
-               blk_queue_io_min(lo->lo_queue, bsize);
-       }
+       blk_queue_logical_block_size(lo->lo_queue, bsize);
+       blk_queue_physical_block_size(lo->lo_queue, bsize);
+       blk_queue_io_min(lo->lo_queue, bsize);
  
        loop_update_rotational(lo);
        loop_update_dio(lo);

Attachment: pgpt_3jZZBldb.pgp
Description: OpenPGP digital signature

Reply via email to