diff options
Diffstat (limited to 'fs/overlayfs')
-rw-r--r-- | fs/overlayfs/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index 110c968dcb3b..cc7a0f3aa0dd 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c | |||
@@ -484,7 +484,7 @@ static void ovl_put_super(struct super_block *sb) | |||
484 | * @buf: The struct kstatfs to fill in with stats | 484 | * @buf: The struct kstatfs to fill in with stats |
485 | * | 485 | * |
486 | * Get the filesystem statistics. As writes always target the upper layer | 486 | * Get the filesystem statistics. As writes always target the upper layer |
487 | * filesystem pass the statfs to the same filesystem. | 487 | * filesystem pass the statfs to the upper filesystem (if it exists) |
488 | */ | 488 | */ |
489 | static int ovl_statfs(struct dentry *dentry, struct kstatfs *buf) | 489 | static int ovl_statfs(struct dentry *dentry, struct kstatfs *buf) |
490 | { | 490 | { |
@@ -493,7 +493,7 @@ static int ovl_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
493 | struct path path; | 493 | struct path path; |
494 | int err; | 494 | int err; |
495 | 495 | ||
496 | ovl_path_upper(root_dentry, &path); | 496 | ovl_path_real(root_dentry, &path); |
497 | 497 | ||
498 | err = vfs_statfs(&path, buf); | 498 | err = vfs_statfs(&path, buf); |
499 | if (!err) { | 499 | if (!err) { |