2015-06-04 16:59:16

by Colin King

[permalink] [raw]
Subject: [PATCH] jfs: fix indentation on if statement

From: Colin Ian King <[email protected]>

The if statement and closing brace are indented by 1
extra space, so remove this extra spacing. Cosmetic
change only.

Signed-off-by: Colin Ian King <[email protected]>
---
fs/jfs/inode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c
index 070dc4b..28d69fa 100644
--- a/fs/jfs/inode.c
+++ b/fs/jfs/inode.c
@@ -133,11 +133,11 @@ int jfs_write_inode(struct inode *inode, struct writeback_control *wbc)
* It has been committed since the last change, but was still
* on the dirty inode list.
*/
- if (!test_cflag(COMMIT_Dirty, inode)) {
+ if (!test_cflag(COMMIT_Dirty, inode)) {
/* Make sure committed changes hit the disk */
jfs_flush_journal(JFS_SBI(inode->i_sb)->log, wait);
return 0;
- }
+ }

if (jfs_commit_inode(inode, wait)) {
jfs_err("jfs_write_inode: jfs_commit_inode failed!");
--
2.1.4


2015-06-04 18:29:29

by Dave Kleikamp

[permalink] [raw]
Subject: Re: [PATCH] jfs: fix indentation on if statement

On 06/04/2015 11:57 AM, Colin King wrote:
> From: Colin Ian King <[email protected]>
>
> The if statement and closing brace are indented by 1
> extra space, so remove this extra spacing. Cosmetic
> change only.

Thanks. Pushed to jfs-next.

>
> Signed-off-by: Colin Ian King <[email protected]>
> ---
> fs/jfs/inode.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c
> index 070dc4b..28d69fa 100644
> --- a/fs/jfs/inode.c
> +++ b/fs/jfs/inode.c
> @@ -133,11 +133,11 @@ int jfs_write_inode(struct inode *inode, struct writeback_control *wbc)
> * It has been committed since the last change, but was still
> * on the dirty inode list.
> */
> - if (!test_cflag(COMMIT_Dirty, inode)) {
> + if (!test_cflag(COMMIT_Dirty, inode)) {
> /* Make sure committed changes hit the disk */
> jfs_flush_journal(JFS_SBI(inode->i_sb)->log, wait);
> return 0;
> - }
> + }
>
> if (jfs_commit_inode(inode, wait)) {
> jfs_err("jfs_write_inode: jfs_commit_inode failed!");
>