Merge tag '9p-for-5.4' of git://github.com/martinetd/linux
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 27 Sep 2019 22:10:34 +0000 (15:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 27 Sep 2019 22:10:34 +0000 (15:10 -0700)
Pull 9p updates from Dominique Martinet:
 "Some of the usual small fixes and cleanup.

  Small fixes all around:
   - avoid overlayfs copy-up for PRIVATE mmaps
   - KUMSAN uninitialized warning for transport error
   - one syzbot memory leak fix in 9p cache
   - internal API cleanup for v9fs_fill_super"

* tag '9p-for-5.4' of git://github.com/martinetd/linux:
  9p/vfs_super.c: Remove unused parameter data in v9fs_fill_super
  9p/cache.c: Fix memory leak in v9fs_cache_session_get_cookie
  9p: Transport error uninitialized
  9p: avoid attaching writeback_fid on mmap with type PRIVATE

1  2 
fs/9p/vfs_super.c

diff --combined fs/9p/vfs_super.c
index ca243e658d7186251c2b622c799476c277835c75,6c5ac0a5e5392ee36f94e48e84136bb963c29df4..74df32be4c6a524f158991bfb1e6b8d0ddb341d1
@@@ -58,7 -58,7 +58,7 @@@ static int v9fs_set_super(struct super_
  
  static int
  v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses,
-               int flags, void *data)
+               int flags)
  {
        int ret;
  
        if (v9fs_proto_dotl(v9ses)) {
                sb->s_op = &v9fs_super_ops_dotl;
                sb->s_xattr = v9fs_xattr_handlers;
 -      } else
 +      } else {
                sb->s_op = &v9fs_super_ops;
 +              sb->s_time_max = U32_MAX;
 +      }
 +
 +      sb->s_time_min = 0;
  
        ret = super_setup_bdi(sb);
        if (ret)
@@@ -132,7 -128,7 +132,7 @@@ static struct dentry *v9fs_mount(struc
                retval = PTR_ERR(sb);
                goto clunk_fid;
        }
-       retval = v9fs_fill_super(sb, v9ses, flags, data);
+       retval = v9fs_fill_super(sb, v9ses, flags);
        if (retval)
                goto release_sb;