diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-29 11:06:25 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-29 11:06:25 -0400 |
| commit | 53113b06e48c6c38f7612c1f8043b8a0d2adf72b (patch) | |
| tree | b50f098b72b6389fde956d8272c08169ff2b53cc /fs/logfs/dev_mtd.c | |
| parent | 37542b6a7e73e81f8c066a48e6911e476ee3b22f (diff) | |
| parent | a4cdbd8bfb87ceff455aae85727077889b75001b (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: (29 commits)
braino in internal.h
convert simple cases of nfs-related ->get_sb() to ->mount()
convert btrfs
convert ceph
convert gfs2
convert afs
convert ecryptfs
convert sysfs
convert cgroup and cpuset
switch get_sb_ns() users
switch procfs to ->mount()
setting ->proc_mnt doesn't belong in proc_get_sb()
convert cifs
convert nilfs
switch logfs to ->mount()
logfs: fix a leak in get_sb
logfs get_sb, part 3
logfs get_sb, part 2
logfs get_sb massage, part 1
convert v9fs
...
Diffstat (limited to 'fs/logfs/dev_mtd.c')
| -rw-r--r-- | fs/logfs/dev_mtd.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/logfs/dev_mtd.c b/fs/logfs/dev_mtd.c index a85d47d13e4b..7466e9dcc8c5 100644 --- a/fs/logfs/dev_mtd.c +++ b/fs/logfs/dev_mtd.c | |||
| @@ -230,9 +230,9 @@ static void mtd_writeseg(struct super_block *sb, u64 ofs, size_t len) | |||
| 230 | __mtd_writeseg(sb, ofs, ofs >> PAGE_SHIFT, len >> PAGE_SHIFT); | 230 | __mtd_writeseg(sb, ofs, ofs >> PAGE_SHIFT, len >> PAGE_SHIFT); |
| 231 | } | 231 | } |
| 232 | 232 | ||
| 233 | static void mtd_put_device(struct super_block *sb) | 233 | static void mtd_put_device(struct logfs_super *s) |
| 234 | { | 234 | { |
| 235 | put_mtd_device(logfs_super(sb)->s_mtd); | 235 | put_mtd_device(s->s_mtd); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | static int mtd_can_write_buf(struct super_block *sb, u64 ofs) | 238 | static int mtd_can_write_buf(struct super_block *sb, u64 ofs) |
| @@ -265,14 +265,14 @@ static const struct logfs_device_ops mtd_devops = { | |||
| 265 | .put_device = mtd_put_device, | 265 | .put_device = mtd_put_device, |
| 266 | }; | 266 | }; |
| 267 | 267 | ||
| 268 | int logfs_get_sb_mtd(struct file_system_type *type, int flags, | 268 | int logfs_get_sb_mtd(struct logfs_super *s, int mtdnr) |
| 269 | int mtdnr, struct vfsmount *mnt) | ||
| 270 | { | 269 | { |
| 271 | struct mtd_info *mtd; | 270 | struct mtd_info *mtd = get_mtd_device(NULL, mtdnr); |
| 272 | const struct logfs_device_ops *devops = &mtd_devops; | ||
| 273 | |||
| 274 | mtd = get_mtd_device(NULL, mtdnr); | ||
| 275 | if (IS_ERR(mtd)) | 271 | if (IS_ERR(mtd)) |
| 276 | return PTR_ERR(mtd); | 272 | return PTR_ERR(mtd); |
| 277 | return logfs_get_sb_device(type, flags, mtd, NULL, devops, mnt); | 273 | |
| 274 | s->s_bdev = NULL; | ||
| 275 | s->s_mtd = mtd; | ||
| 276 | s->s_devops = &mtd_devops; | ||
| 277 | return 0; | ||
| 278 | } | 278 | } |
