Merge tag '9p-for-5.1' of git://github.com/martinetd/linux
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 17 Mar 2019 16:10:56 +0000 (09:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 17 Mar 2019 16:10:56 +0000 (09:10 -0700)
Pull 9p updates from Dominique Martinet:
 "Here is a 9p update for 5.1; there honestly hasn't been much.

  Two fixes (leak on invalid mount argument and possible deadlock on
  i_size update on 32bit smp) and a fall-through warning cleanup"

* tag '9p-for-5.1' of git://github.com/martinetd/linux:
  9p/net: fix memory leak in p9_client_create
  9p: use inode->i_lock to protect i_size_write() under 32-bit
  9p: mark expected switch fall-through

1  2 
fs/9p/vfs_super.c

diff --combined fs/9p/vfs_super.c
@@@ -92,7 -92,7 +92,7 @@@ v9fs_fill_super(struct super_block *sb
                return ret;
  
        if (v9ses->cache)
 -              sb->s_bdi->ra_pages = (VM_MAX_READAHEAD * 1024)/PAGE_SIZE;
 +              sb->s_bdi->ra_pages = VM_READAHEAD_PAGES;
  
        sb->s_flags |= SB_ACTIVE | SB_DIRSYNC;
        if (!v9ses->cache)
@@@ -172,7 -172,7 +172,7 @@@ static struct dentry *v9fs_mount(struc
                        goto release_sb;
                }
                d_inode(root)->i_ino = v9fs_qid2ino(&st->qid);
-               v9fs_stat2inode_dotl(st, d_inode(root));
+               v9fs_stat2inode_dotl(st, d_inode(root), 0);
                kfree(st);
        } else {
                struct p9_wstat *st = NULL;
                }
  
                d_inode(root)->i_ino = v9fs_qid2ino(&st->qid);
-               v9fs_stat2inode(st, d_inode(root), sb);
+               v9fs_stat2inode(st, d_inode(root), sb, 0);
  
                p9stat_free(st);
                kfree(st);