summaryrefslogtreecommitdiffstats
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
parent31e8ccea3cd77c5f997ff61e3a5404653e54b2d5 (diff)
downloadop-kernel-dev-b5efccbe0a12a9d5c65c1a60b4270837c7fdb900.zip
op-kernel-dev-b5efccbe0a12a9d5c65c1a60b4270837c7fdb900.tar.gz
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
OpenPOWER on IntegriCloud