# Re: \[PATCH 10/13\] fs: clean up \_\_mark\_inode\_dirty() a bit

- From: Christoph Hellwig \<hch@lst.de\>
- Date: 2021-01-08 09:11:32 
- List: linux-xfs
- Page: https://ratatoskr.run/linux-xfs/2021/01/196856
- Thread: https://ratatoskr.run/linux-fsdevel/2021/01/196640/t.md

```text
On Mon, Jan 04, 2021 at 04:54:49PM -0800, Eric Biggers wrote:
> +	} else {
> +		/*
> +		 * Else it's either I_DIRTY_PAGES, I_DIRTY_TIME, or nothing.
> +		 * (We don't support setting both I_DIRTY_PAGES and I_DIRTY_TIME
> +		 * in one call to __mark_inode_dirty().)
> +		 */
> +		dirtytime = flags & I_DIRTY_TIME;
> +		WARN_ON_ONCE(dirtytime && (flags != I_DIRTY_TIME));

No need for the inner braces here.

Otherwise looks good:

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