aboutsummaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/super.c
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2017-05-11 16:42:27 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2017-07-27 21:54:06 +0200
commitb5efccbe0a12a9d5c65c1a60b4270837c7fdb900 (patch)
tree0217b12438c8b44a6949dfc636ce473f33b0e311 /fs/overlayfs/super.c
parentovl: fix readdir error value (diff)
downloadlinux-dev-b5efccbe0a12a9d5c65c1a60b4270837c7fdb900.tar.xz
linux-dev-b5efccbe0a12a9d5c65c1a60b4270837c7fdb900.zip
ovl: constant d_ino across copy up
When all layers are on the same fs, and iterating a directory which may contain copy up entries, call vfs_getattr() on the overlay entries to make sure that d_ino will be consistent with st_ino from stat(2). There is an overhead of lookup per upper entry in readdir. The overhead is minimal if the iterated entries are already in dcache. It is also quite useful for the common case of 'ls -l' that readdir() pre populates the dcache with the listed entries, making the following stat() calls faster. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/super.c')
0 files changed, 0 insertions, 0 deletions