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
@@@ -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
@@@ -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