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/ecryptfs/main.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/ecryptfs/main.c')
| -rw-r--r-- | fs/ecryptfs/main.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c index cbd4e18adb20..8585934712d4 100644 --- a/fs/ecryptfs/main.c +++ b/fs/ecryptfs/main.c | |||
| @@ -540,9 +540,8 @@ out: | |||
| 540 | * ecryptfs_interpose to perform most of the linking | 540 | * ecryptfs_interpose to perform most of the linking |
| 541 | * ecryptfs_interpose(): links the lower filesystem into ecryptfs (inode.c) | 541 | * ecryptfs_interpose(): links the lower filesystem into ecryptfs (inode.c) |
| 542 | */ | 542 | */ |
| 543 | static int ecryptfs_get_sb(struct file_system_type *fs_type, int flags, | 543 | static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags, |
| 544 | const char *dev_name, void *raw_data, | 544 | const char *dev_name, void *raw_data) |
| 545 | struct vfsmount *mnt) | ||
| 546 | { | 545 | { |
| 547 | struct super_block *s; | 546 | struct super_block *s; |
| 548 | struct ecryptfs_sb_info *sbi; | 547 | struct ecryptfs_sb_info *sbi; |
| @@ -607,8 +606,7 @@ static int ecryptfs_get_sb(struct file_system_type *fs_type, int flags, | |||
| 607 | err = "Reading sb failed"; | 606 | err = "Reading sb failed"; |
| 608 | goto out; | 607 | goto out; |
| 609 | } | 608 | } |
| 610 | simple_set_mnt(mnt, s); | 609 | return dget(s->s_root); |
| 611 | return 0; | ||
| 612 | 610 | ||
| 613 | out: | 611 | out: |
| 614 | if (sbi) { | 612 | if (sbi) { |
| @@ -616,7 +614,7 @@ out: | |||
| 616 | kmem_cache_free(ecryptfs_sb_info_cache, sbi); | 614 | kmem_cache_free(ecryptfs_sb_info_cache, sbi); |
| 617 | } | 615 | } |
| 618 | printk(KERN_ERR "%s; rc = [%d]\n", err, rc); | 616 | printk(KERN_ERR "%s; rc = [%d]\n", err, rc); |
| 619 | return rc; | 617 | return ERR_PTR(rc); |
| 620 | } | 618 | } |
| 621 | 619 | ||
| 622 | /** | 620 | /** |
| @@ -639,7 +637,7 @@ static void ecryptfs_kill_block_super(struct super_block *sb) | |||
| 639 | static struct file_system_type ecryptfs_fs_type = { | 637 | static struct file_system_type ecryptfs_fs_type = { |
| 640 | .owner = THIS_MODULE, | 638 | .owner = THIS_MODULE, |
| 641 | .name = "ecryptfs", | 639 | .name = "ecryptfs", |
| 642 | .get_sb = ecryptfs_get_sb, | 640 | .mount = ecryptfs_mount, |
| 643 | .kill_sb = ecryptfs_kill_block_super, | 641 | .kill_sb = ecryptfs_kill_block_super, |
| 644 | .fs_flags = 0 | 642 | .fs_flags = 0 |
| 645 | }; | 643 | }; |
