]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - fs/overlayfs/copy_up.c
ovl: clean up kstat usage
authorAl Viro <viro@ZenIV.linux.org.uk>
Sun, 4 Dec 2016 17:33:17 +0000 (17:33 +0000)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 16 Dec 2016 10:02:57 +0000 (11:02 +0100)
commit32a3d848eb91a298334991f1891e12e0362f91db
tree693bf24282b44846903e45ff0ac165d8ef76e218
parent9aba652190f8cdced66967c97d6159de0cc8478e
ovl: clean up kstat usage

FWIW, there's a bit of abuse of struct kstat in overlayfs object
creation paths - for one thing, it ends up with a very small subset
of struct kstat (mode + rdev), for another it also needs link in
case of symlinks and ends up passing it separately.

IMO it would be better to introduce a separate object for that.

In principle, we might even lift that thing into general API and switch
 ->mkdir()/->mknod()/->symlink() to identical calling conventions.  Hell
knows, perhaps ->create() as well...

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/copy_up.c
fs/overlayfs/dir.c
fs/overlayfs/overlayfs.h
fs/overlayfs/super.c