Re: [PATCH] ecryptfs: Make inode bdi consistent with superblock bdi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue Jul 26, 2011 at 04:15:10PM -0700, Thieu Le <thieule@xxxxxxxxxxxx> wrote:
> Make the inode mapping bdi consistent with the superblock bdi so that
> dirty pages are flushed properly.
> 
> Signed-off-by: Thieu Le <thieule@xxxxxxxxxxxx>

Applied. Thanks, Thieu.

Tyler

> ---
>  fs/ecryptfs/inode.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c
> index 340c657..11f8582 100644
> --- a/fs/ecryptfs/inode.c
> +++ b/fs/ecryptfs/inode.c
> @@ -69,6 +69,7 @@ static int ecryptfs_inode_set(struct inode *inode, void *opaque)
>  	inode->i_ino = lower_inode->i_ino;
>  	inode->i_version++;
>  	inode->i_mapping->a_ops = &ecryptfs_aops;
> +	inode->i_mapping->backing_dev_info = inode->i_sb->s_bdi;
> 
>  	if (S_ISLNK(inode->i_mode))
>  		inode->i_op = &ecryptfs_symlink_iops;
> -- 
> 1.7.3.1
> 
--
To unsubscribe from this list: send the line "unsubscribe ecryptfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Crypto]     [Device Mapper Crypto]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux