projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] VFS: Permit filesystem to perform statfs with a known root dentry
[deliverable/linux.git]
/
fs
/
bfs
/
inode.c
diff --git
a/fs/bfs/inode.c
b/fs/bfs/inode.c
index 3af6c73c5b5a69fe3831e6e8d6b588715f0dfb69..cf74f3d4d966d0f81c8abace34a1bfe79d9050e8 100644
(file)
--- a/
fs/bfs/inode.c
+++ b/
fs/bfs/inode.c
@@
-203,8
+203,9
@@
static void bfs_put_super(struct super_block *s)
s->s_fs_info = NULL;
}
s->s_fs_info = NULL;
}
-static int bfs_statfs(struct
super_block *s
, struct kstatfs *buf)
+static int bfs_statfs(struct
dentry *dentry
, struct kstatfs *buf)
{
{
+ struct super_block *s = dentry->d_sb;
struct bfs_sb_info *info = BFS_SB(s);
u64 id = huge_encode_dev(s->s_bdev->bd_dev);
buf->f_type = BFS_MAGIC;
struct bfs_sb_info *info = BFS_SB(s);
u64 id = huge_encode_dev(s->s_bdev->bd_dev);
buf->f_type = BFS_MAGIC;
@@
-257,7
+258,8
@@
static int init_inodecache(void)
{
bfs_inode_cachep = kmem_cache_create("bfs_inode_cache",
sizeof(struct bfs_inode_info),
{
bfs_inode_cachep = kmem_cache_create("bfs_inode_cache",
sizeof(struct bfs_inode_info),
- 0, SLAB_RECLAIM_ACCOUNT,
+ 0, (SLAB_RECLAIM_ACCOUNT|
+ SLAB_MEM_SPREAD),
init_once, NULL);
if (bfs_inode_cachep == NULL)
return -ENOMEM;
init_once, NULL);
if (bfs_inode_cachep == NULL)
return -ENOMEM;
@@
-409,10
+411,10
@@
out:
return -EINVAL;
}
return -EINVAL;
}
-static
struct super_block *
bfs_get_sb(struct file_system_type *fs_type,
- int flags, const char *dev_name, void *data)
+static
int
bfs_get_sb(struct file_system_type *fs_type,
+ int flags, const char *dev_name, void *data
, struct vfsmount *mnt
)
{
{
- return get_sb_bdev(fs_type, flags, dev_name, data, bfs_fill_super);
+ return get_sb_bdev(fs_type, flags, dev_name, data, bfs_fill_super
, mnt
);
}
static struct file_system_type bfs_fs_type = {
}
static struct file_system_type bfs_fs_type = {
This page took
0.023706 seconds
and
5
git commands to generate.