diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2014-12-13 00:59:46 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-12-13 00:59:46 +0100 |
commit | 4ebc581828d5d0fe189ca06cef8b7a63cb4583d5 (patch) | |
tree | 080b8f3b4f1c4c45e4345e7d6f69229285d2e628 /fs/overlayfs | |
parent | 09e10322b71716adf567d453889ef0871cf226b9 (diff) | |
download | linux-4ebc581828d5d0fe189ca06cef8b7a63cb4583d5.tar.gz linux-4ebc581828d5d0fe189ca06cef8b7a63cb4583d5.tar.bz2 linux-4ebc581828d5d0fe189ca06cef8b7a63cb4583d5.zip |
ovl: allow statfs if no upper layer
Handle "no upper layer" case in statfs.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
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) * @buf: The struct kstatfs to fill in with stats * * Get the filesystem statistics. As writes always target the upper layer - * filesystem pass the statfs to the same filesystem. + * filesystem pass the statfs to the upper filesystem (if it exists) */ static int ovl_statfs(struct dentry *dentry, struct kstatfs *buf) { @@ -493,7 +493,7 @@ static int ovl_statfs(struct dentry *dentry, struct kstatfs *buf) struct path path; int err; - ovl_path_upper(root_dentry, &path); + ovl_path_real(root_dentry, &path); err = vfs_statfs(&path, buf); if (!err) { |