vfs: Add ->statfs callback for pipefs
PATCH 4/4 vfs: Add ->statfs callback for pipefs
From: Pavel Emelyanov <[email protected]>
This is done to make it possible to distinguish pipes from fifos when opening one via /proc/<pid>/fd/ link.
Signed-off-by Pavel Emelyanov <[email protected]>
Reviewed-by Tejun Heo <[email protected]>
Acked-by Serge Hallyn <[email protected]>
Signed-off-by Cyrill Gorcunov <[email protected]>
--- fs/pipe.c | 1 + 1 file changed, 1 insertion(+)
fs/pipe.c +1 -0
@@ -1254,6 +1254,7 @@ out:static const struct super_operations pipefs_ops = { .destroy_inode = free_inode_nonrcu, + .statfs = simple_statfs, };/*