* [patch] f2fs: simplify by using a literal
@ 2014-08-28 13:13 ` Dan Carpenter
0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2014-08-28 13:13 UTC (permalink / raw)
To: Jaegeuk Kim; +Cc: kernel-janitors, linux-f2fs-devel
We can make the code a bit simpler because we know that "!retry" is
zero.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 0f61f5a..41bdf51 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1133,7 +1133,7 @@ free_sbi:
/* give only one another chance */
if (retry) {
- retry = !retry;
+ retry = 0;
shrink_dcache_sb(sb);
goto try_onemore;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [patch] f2fs: simplify by using a literal
@ 2014-08-28 13:13 ` Dan Carpenter
0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2014-08-28 13:13 UTC (permalink / raw)
To: Jaegeuk Kim; +Cc: kernel-janitors, linux-f2fs-devel
We can make the code a bit simpler because we know that "!retry" is
zero.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 0f61f5a..41bdf51 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1133,7 +1133,7 @@ free_sbi:
/* give only one another chance */
if (retry) {
- retry = !retry;
+ retry = 0;
shrink_dcache_sb(sb);
goto try_onemore;
}
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-28 13:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-28 13:13 [patch] f2fs: simplify by using a literal Dan Carpenter
2014-08-28 13:13 ` Dan Carpenter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.