Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 8 Feb 2020 21:04:49 +0000 (13:04 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 8 Feb 2020 21:04:49 +0000 (13:04 -0800)
Pull misc vfs updates from Al Viro:

 - bmap series from cmaiolino

 - getting rid of convolutions in copy_mount_options() (use a couple of
   copy_from_user() instead of the __get_user() crap)

* 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
  saner copy_mount_options()
  fibmap: Reject negative block numbers
  fibmap: Use bmap instead of ->bmap method in ioctl_fibmap
  ecryptfs: drop direct calls to ->bmap
  cachefiles: drop direct usage of ->bmap method.
  fs: Enable bmap() function to properly return errors

1  2 
drivers/md/md-bitmap.c
fs/f2fs/data.c
fs/inode.c
fs/ioctl.c
fs/jbd2/journal.c
include/linux/fs.h

Simple merge
diff --cc fs/f2fs/data.c
index 8bd9afa81c54752275fb46a12dc5f7f702e53044,e948902c4ec59b8d3e82f5643e6c4d24405edbeb..b27b7210791165d579d2d84c236fd574ff8e0e37
@@@ -3662,10 -3167,11 +3662,12 @@@ static int check_swap_activate(struct s
        probe_block = 0;
        page_no = 0;
        last_block = i_size_read(inode) >> blkbits;
 -      while ((probe_block + blocks_per_page) <= last_block && page_no < max) {
 +      while ((probe_block + blocks_per_page) <= last_block &&
 +                      page_no < sis->max) {
                unsigned block_in_page;
                sector_t first_block;
+               sector_t block = 0;
+               int      err = 0;
  
                cond_resched();
  
diff --cc fs/inode.c
Simple merge
diff --cc fs/ioctl.c
Simple merge
index eb8ca446d1ab829a058d35d2573946b54e6b0388,01fa5d247e39cab0eefc062a825b257427841d36..a49d0e670ddf82bdb98382312101481af2943c2b
@@@ -804,8 -806,12 +805,11 @@@ int jbd2_journal_bmap(journal_t *journa
                                        "at offset %lu on %s\n",
                               __func__, blocknr, journal->j_devname);
                        err = -EIO;
 -                      __journal_abort_soft(journal, err);
 -
 +                      jbd2_journal_abort(journal, err);
+               } else {
+                       *retp = block;
                }
        } else {
                *retp = blocknr; /* +journal->j_blk_offset */
        }
Simple merge