summaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs/super.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2010-04-22 12:22:04 +0200
committerJens Axboe <jens.axboe@oracle.com>2010-04-22 12:22:04 +0200
commit9df9c8b930156a2f9ce2b2ae66acb14bee2663f5 (patch)
tree35992d372a4587600f93c399eaa12b7c7bd77cbf /fs/ecryptfs/super.c
parent5163d90076729413cb882d3dd5c3d3cfb5b9f035 (diff)
downloadop-kernel-dev-9df9c8b930156a2f9ce2b2ae66acb14bee2663f5.zip
op-kernel-dev-9df9c8b930156a2f9ce2b2ae66acb14bee2663f5.tar.gz
ecryptfs: add bdi backing to mount session
This ensures that dirty data gets flushed properly. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs/ecryptfs/super.c')
-rw-r--r--fs/ecryptfs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ecryptfs/super.c b/fs/ecryptfs/super.c
index 278743c..0c0ae49 100644
--- a/fs/ecryptfs/super.c
+++ b/fs/ecryptfs/super.c
@@ -122,6 +122,7 @@ static void ecryptfs_put_super(struct super_block *sb)
lock_kernel();
ecryptfs_destroy_mount_crypt_stat(&sb_info->mount_crypt_stat);
+ bdi_destroy(&sb_info->bdi);
kmem_cache_free(ecryptfs_sb_info_cache, sb_info);
ecryptfs_set_superblock_private(sb, NULL);
OpenPOWER on IntegriCloud