]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: allocate anon bdev per unique lower fs
authorAmir Goldstein <amir73il@gmail.com>
Wed, 28 Mar 2018 17:22:41 +0000 (20:22 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 12 Apr 2018 10:04:50 +0000 (12:04 +0200)
commit59a48571583e67cf92a4621cda4cdef8889aadba
tree6798d7117b093018188fe50c112f4dccaba7fd8c
parent0e2469035c7fe7500c22b70cc0f7b77a9d2bfd70
ovl: allocate anon bdev per unique lower fs

Instead of allocating an anonymous bdev per lower layer, allocate
one anonymous bdev per every unique lower fs that is different than
upper fs.

Every unique lower fs is assigned an fsid > 0 and the number of
unique lower fs are stored in ofs->numlowerfs.

The assigned fsid is stored in the lower layer struct and will be
used also for inode number multiplexing.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/inode.c
fs/overlayfs/ovl_entry.h
fs/overlayfs/super.c
fs/overlayfs/util.c