mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-30 11:04:25 +00:00
ovl: allow statfs if no upper layer
Handle "no upper layer" case in statfs. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
This commit is contained in:
parent
09e10322b7
commit
4ebc581828
1 changed files with 2 additions and 2 deletions
|
@ -484,7 +484,7 @@ static void ovl_put_super(struct super_block *sb)
|
||||||
* @buf: The struct kstatfs to fill in with stats
|
* @buf: The struct kstatfs to fill in with stats
|
||||||
*
|
*
|
||||||
* Get the filesystem statistics. As writes always target the upper layer
|
* 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)
|
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;
|
struct path path;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
ovl_path_upper(root_dentry, &path);
|
ovl_path_real(root_dentry, &path);
|
||||||
|
|
||||||
err = vfs_statfs(&path, buf);
|
err = vfs_statfs(&path, buf);
|
||||||
if (!err) {
|
if (!err) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue