# Re: \[PATCH v2 08/12\] fs: drop redundant check from \_\_writeback\_single\_inode()

- From: Christoph Hellwig \<hch@lst.de\>
- Date: 2021-01-11 10:53:32 
- List: linux-ext4
- Page: https://ratatoskr.run/linux-ext4/2021/01/196987
- Thread: https://ratatoskr.run/linux-fsdevel/2021/01/196913/t.md

```text
On Fri, Jan 08, 2021 at 11:58:59PM -0800, Eric Biggers wrote:
> From: Eric Biggers <redacted>
> 
> wbc->for_sync implies wbc->sync_mode == WB_SYNC_ALL, so there's no need
> to check for both.  Just check for WB_SYNC_ALL.
> 
> Signed-off-by: Eric Biggers <redacted>

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>
```
