Re: [PATCH 1/4] ubifs: Correctly set inode size in ubifs_link()

2021-01-22 Thread Zhihao Cheng
在 2021/1/23 5:22, Richard Weinberger 写道: Reviewed-by: Zhihao Cheng diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index 9a6b8660425a..04912dedca48 100644 --- a/fs/ubifs/dir.c +++ b/fs/ubifs/dir.c @@ -693,7 +693,7 @@ static int ubifs_link(struct dentry *old_dentry, struct inode *dir,

[PATCH 1/4] ubifs: Correctly set inode size in ubifs_link()

2021-01-22 Thread Richard Weinberger
We need to use fscrypt filename handling wrappers when calculating the size of a directory entry, otherwise UBIFS will report the wrong value (size of plain instead of cihper text) for st_size of a directory if fscrypt is enabled. Cc: sta...@vger.kernel.org Fixes: f4f61d2cc6d8 ("ubifs: Implement