debugfs: Fix statfs() regression in 3.2.69
authorBen Hutchings <ben@decadent.org.uk>
Sat, 1 Aug 2015 18:55:11 +0000 (19:55 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 6 Aug 2015 23:32:17 +0000 (00:32 +0100)
Commit 915f4f86ddc4 ("debugfs: leave freeing a symlink body until inode
eviction", commit 0db59e59299f upstream) changed debugfs to define its
own super_operations and implement the evict_inode operation.

Luis Henriques pointed out that it needs to define the statfs
operation, as in simple_super_operations which it was using before.

Reported-by: Luis Henriques <luis.henriques@canonical.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/debugfs/inode.c

index a15f1e2..74f03b5 100644 (file)
@@ -135,6 +135,7 @@ static void debugfs_evict_inode(struct inode *inode)
 
 static const struct super_operations debugfs_super_operations = {
        .evict_inode    = debugfs_evict_inode,
 
 static const struct super_operations debugfs_super_operations = {
        .evict_inode    = debugfs_evict_inode,
+       .statfs         = simple_statfs,
 };
 
 static int debug_fill_super(struct super_block *sb, void *data, int silent)
 };
 
 static int debug_fill_super(struct super_block *sb, void *data, int silent)