[f2fs-dev] [PATCH V2 1/7] ext4: use IS_ENCRYPTED() to check encryption status

2018-12-04 Thread Chandan Rajendra
This commit removes the ext4 specific ext4_encrypted_inode() and makes use of the generic IS_ENCRYPTED() macro to check for the encryption status of an inode. Signed-off-by: Chandan Rajendra --- fs/ext4/dir.c | 8 fs/ext4/ext4.h| 5 - fs/ext4/ext4_jbd2.h | 2 +-

[f2fs-dev] [PATCH V2 3/7] fscrypt: remove filesystem specific build config option

2018-12-04 Thread Chandan Rajendra
In order to have a common code base for fscrypt "post read" processing for all filesystems which support encryption, this commit removes filesystem specific build config option (e.g. CONFIG_EXT4_FS_ENCRYPTION) and replaces it with a build option (i.e. CONFIG_FS_ENCRYPTION) whose value affects all t

[f2fs-dev] [PATCH V2 4/7] Add S_VERITY and IS_VERITY()

2018-12-04 Thread Chandan Rajendra
Similar to S_ENCRYPTED/IS_ENCRYPTED(), this commit adds S_VERITY/IS_VERITY() to be able to check if a VFS inode has verity information associated with it. Signed-off-by: Chandan Rajendra --- include/linux/fs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/fs.h b/include/lin

[f2fs-dev] [PATCH V2 0/7] Remove fs specific fscrypt and fsverity build config options

2018-12-04 Thread Chandan Rajendra
In order to have a common code base for fscrypt & fsverity "post read" processing across filesystems which implement fscrypt/fsverity, this commit removes filesystem specific build config option (CONFIG_EXT4_FS_ENCRYPTION, CONFIG_EXT4_FS_VERITY, CONFIG_F2FS_FS_ENCRYPTION, CONFIG_F2FS_FS_VERITY and

[f2fs-dev] [PATCH V2 6/7] f2fs: use IS_VERITY() to check inode's fsverity status

2018-12-04 Thread Chandan Rajendra
This commit now uses IS_VERITY() macro to check if fsverity is enabled on an inode. Acked-by: Chao Yu Signed-off-by: Chandan Rajendra --- fs/f2fs/file.c | 6 +++--- fs/f2fs/inode.c | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 6c

[f2fs-dev] [PATCH V2 2/7] f2fs: use IS_ENCRYPTED() to check encryption status

2018-12-04 Thread Chandan Rajendra
This commit removes the f2fs specific f2fs_encrypted_inode() and makes use of the generic IS_ENCRYPTED() macro to check for the encryption status of an inode. Acked-by: Chao Yu Signed-off-by: Chandan Rajendra --- fs/f2fs/data.c | 4 ++-- fs/f2fs/dir.c | 10 +- fs/f2fs/file.c | 10 +

[f2fs-dev] [PATCH V2 5/7] ext4: use IS_VERITY() to check inode's fsverity status

2018-12-04 Thread Chandan Rajendra
This commit now uses IS_VERITY() macro to check if fsverity is enabled on an inode. Signed-off-by: Chandan Rajendra --- fs/ext4/ext4.h | 9 - fs/ext4/file.c | 2 +- fs/ext4/inode.c| 10 ++ fs/ext4/readpage.c | 2 +- fs/ext4/super.c| 1 + 5 files changed, 9 ins

[f2fs-dev] [PATCH V2 7/7] fsverity: Remove filesystem specific build config option

2018-12-04 Thread Chandan Rajendra
In order to have a common code base for fsverity "post read" processing for all filesystems which support fsverity, this commit removes filesystem specific build config option (e.g. CONFIG_EXT4_FS_VERITY) and replaces it with a build option (i.e. CONFIG_FS_VERITY) whose value affects all the filesy

[f2fs-dev] [PATCH] f2fs: clear PG_writeback if IPU failed

2018-12-04 Thread Sheng Yong
If IPU failed, nothing is commited, we should end page writeback. Signed-off-by: Sheng Yong --- fs/f2fs/data.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 8780f3d737c4..b29b754141d8 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1853,6 +1853,

Re: [f2fs-dev] [PATCH V2 1/7] ext4: use IS_ENCRYPTED() to check encryption status

2018-12-04 Thread Eric Biggers
On Tue, Dec 04, 2018 at 03:26:44PM +0530, Chandan Rajendra wrote: > This commit removes the ext4 specific ext4_encrypted_inode() and makes > use of the generic IS_ENCRYPTED() macro to check for the encryption > status of an inode. > > Signed-off-by: Chandan Rajendra Reviewed-by: Eric Biggers T

Re: [f2fs-dev] [PATCH V2 2/7] f2fs: use IS_ENCRYPTED() to check encryption status

2018-12-04 Thread Eric Biggers
On Tue, Dec 04, 2018 at 03:26:45PM +0530, Chandan Rajendra wrote: > This commit removes the f2fs specific f2fs_encrypted_inode() and makes > use of the generic IS_ENCRYPTED() macro to check for the encryption > status of an inode. > > Acked-by: Chao Yu > Signed-off-by: Chandan Rajendra This com

Re: [f2fs-dev] [PATCH V2 3/7] fscrypt: remove filesystem specific build config option

2018-12-04 Thread Eric Biggers
Hi Chandan, On Tue, Dec 04, 2018 at 03:26:46PM +0530, Chandan Rajendra wrote: > In order to have a common code base for fscrypt "post read" processing > for all filesystems which support encryption, this commit removes > filesystem specific build config option (e.g. CONFIG_EXT4_FS_ENCRYPTION) > an

Re: [f2fs-dev] [PATCH V2 4/7] Add S_VERITY and IS_VERITY()

2018-12-04 Thread Eric Biggers
On Tue, Dec 04, 2018 at 03:26:47PM +0530, Chandan Rajendra wrote: > Similar to S_ENCRYPTED/IS_ENCRYPTED(), this commit adds > S_VERITY/IS_VERITY() to be able to check if a VFS inode has verity > information associated with it. > > Signed-off-by: Chandan Rajendra > --- > include/linux/fs.h | 2 ++

Re: [f2fs-dev] [PATCH V2 5/7] ext4: use IS_VERITY() to check inode's fsverity status

2018-12-04 Thread Eric Biggers
On Tue, Dec 04, 2018 at 03:26:48PM +0530, Chandan Rajendra wrote: > This commit now uses IS_VERITY() macro to check if fsverity is > enabled on an inode. > > Signed-off-by: Chandan Rajendra > --- > fs/ext4/ext4.h | 9 - > fs/ext4/file.c | 2 +- > fs/ext4/inode.c| 10 ++-

Re: [f2fs-dev] [PATCH V2 6/7] f2fs: use IS_VERITY() to check inode's fsverity status

2018-12-04 Thread Eric Biggers
Hi Chandan, On Tue, Dec 04, 2018 at 03:26:49PM +0530, Chandan Rajendra wrote: > This commit now uses IS_VERITY() macro to check if fsverity is > enabled on an inode. > > Acked-by: Chao Yu > Signed-off-by: Chandan Rajendra > --- > fs/f2fs/file.c | 6 +++--- > fs/f2fs/inode.c | 4 +++- > 2 file

Re: [f2fs-dev] [PATCH V2 3/7] fscrypt: remove filesystem specific build config option

2018-12-04 Thread Eric Biggers
On Tue, Dec 04, 2018 at 03:26:46PM +0530, Chandan Rajendra wrote: > diff --git a/include/linux/fscrypt.h b/include/linux/fscrypt.h > index 952ab97af325..6ba193c23f37 100644 > --- a/include/linux/fscrypt.h > +++ b/include/linux/fscrypt.h > @@ -2,9 +2,8 @@ > /* > * fscrypt.h: declarations for per-

Re: [f2fs-dev] [PATCH V2 7/7] fsverity: Remove filesystem specific build config option

2018-12-04 Thread Eric Biggers
Hi Chandan, On Tue, Dec 04, 2018 at 03:26:50PM +0530, Chandan Rajendra wrote: > In order to have a common code base for fsverity "post read" processing > for all filesystems which support fsverity, this commit removes > filesystem specific build config option (e.g. CONFIG_EXT4_FS_VERITY) > and rep