aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2010-07-26 05:33:36 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2010-10-29 04:17:11 -0400
commit4d143beb0429e8c9c5f1dc66c7ff8ee70dde45a4 (patch)
tree59e9ac220d7753696f3292bd8af2ad004b81c13e /fs
parentd0e46f88b2f73828faf00d559c7e5b3ce9e39a4b (diff)
convert ecryptfs
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/ecryptfs/main.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c
index cbd4e18adb2..8585934712d 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 */
543static int ecryptfs_get_sb(struct file_system_type *fs_type, int flags, 543static 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
613out: 611out:
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)
639static struct file_system_type ecryptfs_fs_type = { 637static 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};