[PATCH] fs-writeback: remove unnecessary ‘false’ values from wakeup_bdi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



wakeup_bdi does not need to be initialized. It is used after being
assigned.

Signed-off-by: Li zeming <zeming@xxxxxxxxxxxx>
---
 fs/fs-writeback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 6fba5a52127b..2d3191d9c736 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -2486,7 +2486,7 @@ void __mark_inode_dirty(struct inode *inode, int flags)
 		 */
 		if (!was_dirty) {
 			struct list_head *dirty_list;
-			bool wakeup_bdi = false;
+			bool wakeup_bdi;
 
 			inode->dirtied_when = jiffies;
 			if (dirtytime)
-- 
2.18.2




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux