diff options
author | Dave Jones <davej@redhat.com> | 2006-06-29 16:01:54 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-06-29 16:01:54 -0400 |
commit | 55b4d6a52195a8f277ffddf755ddaff359878f41 (patch) | |
tree | 06a3183a562f8da4688f65023f7a18dcad702956 /fs/bfs | |
parent | adf8a287150667feb5747f8beade62acacc17d4e (diff) | |
parent | 1f1332f727c3229eb2166a83fec5d3de6a73dce2 (diff) |
Merge ../linus
Conflicts:
drivers/char/agp/Kconfig
Diffstat (limited to 'fs/bfs')
-rw-r--r-- | fs/bfs/bfs.h | 2 | ||||
-rw-r--r-- | fs/bfs/file.c | 2 | ||||
-rw-r--r-- | fs/bfs/inode.c | 9 |
3 files changed, 7 insertions, 6 deletions
diff --git a/fs/bfs/bfs.h b/fs/bfs/bfs.h index 9d791004b2..31973bbbf0 100644 --- a/fs/bfs/bfs.h +++ b/fs/bfs/bfs.h | |||
@@ -50,7 +50,7 @@ static inline struct bfs_inode_info *BFS_I(struct inode *inode) | |||
50 | /* file.c */ | 50 | /* file.c */ |
51 | extern struct inode_operations bfs_file_inops; | 51 | extern struct inode_operations bfs_file_inops; |
52 | extern const struct file_operations bfs_file_operations; | 52 | extern const struct file_operations bfs_file_operations; |
53 | extern struct address_space_operations bfs_aops; | 53 | extern const struct address_space_operations bfs_aops; |
54 | 54 | ||
55 | /* dir.c */ | 55 | /* dir.c */ |
56 | extern struct inode_operations bfs_dir_inops; | 56 | extern struct inode_operations bfs_dir_inops; |
diff --git a/fs/bfs/file.c b/fs/bfs/file.c index d83cd74a2e..3d5aca28a0 100644 --- a/fs/bfs/file.c +++ b/fs/bfs/file.c | |||
@@ -153,7 +153,7 @@ static sector_t bfs_bmap(struct address_space *mapping, sector_t block) | |||
153 | return generic_block_bmap(mapping, block, bfs_get_block); | 153 | return generic_block_bmap(mapping, block, bfs_get_block); |
154 | } | 154 | } |
155 | 155 | ||
156 | struct address_space_operations bfs_aops = { | 156 | const struct address_space_operations bfs_aops = { |
157 | .readpage = bfs_readpage, | 157 | .readpage = bfs_readpage, |
158 | .writepage = bfs_writepage, | 158 | .writepage = bfs_writepage, |
159 | .sync_page = block_sync_page, | 159 | .sync_page = block_sync_page, |
diff --git a/fs/bfs/inode.c b/fs/bfs/inode.c index 55a7a78332..cf74f3d4d9 100644 --- a/fs/bfs/inode.c +++ b/fs/bfs/inode.c | |||
@@ -203,8 +203,9 @@ static void bfs_put_super(struct super_block *s) | |||
203 | s->s_fs_info = NULL; | 203 | s->s_fs_info = NULL; |
204 | } | 204 | } |
205 | 205 | ||
206 | static int bfs_statfs(struct super_block *s, struct kstatfs *buf) | 206 | static int bfs_statfs(struct dentry *dentry, struct kstatfs *buf) |
207 | { | 207 | { |
208 | struct super_block *s = dentry->d_sb; | ||
208 | struct bfs_sb_info *info = BFS_SB(s); | 209 | struct bfs_sb_info *info = BFS_SB(s); |
209 | u64 id = huge_encode_dev(s->s_bdev->bd_dev); | 210 | u64 id = huge_encode_dev(s->s_bdev->bd_dev); |
210 | buf->f_type = BFS_MAGIC; | 211 | buf->f_type = BFS_MAGIC; |
@@ -410,10 +411,10 @@ out: | |||
410 | return -EINVAL; | 411 | return -EINVAL; |
411 | } | 412 | } |
412 | 413 | ||
413 | static struct super_block *bfs_get_sb(struct file_system_type *fs_type, | 414 | static int bfs_get_sb(struct file_system_type *fs_type, |
414 | int flags, const char *dev_name, void *data) | 415 | int flags, const char *dev_name, void *data, struct vfsmount *mnt) |
415 | { | 416 | { |
416 | return get_sb_bdev(fs_type, flags, dev_name, data, bfs_fill_super); | 417 | return get_sb_bdev(fs_type, flags, dev_name, data, bfs_fill_super, mnt); |
417 | } | 418 | } |
418 | 419 | ||
419 | static struct file_system_type bfs_fs_type = { | 420 | static struct file_system_type bfs_fs_type = { |