fs: remove incorrect I_NEW warnings
commit213c3d35d1cc32145a9e20c7c7fdefbf9889fe33
authorNick Piggin <npiggin@suse.de>
Tue, 2 Jun 2009 10:07:47 +0000 (2 12:07 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 2 Jul 2009 23:40:34 +0000 (2 16:40 -0700)
tree52c3f9597b0936d0164206a0fbaaf574c1a3ef55
parent7fd62502841422ee97456d5897f3b3c5b9d72606
fs: remove incorrect I_NEW warnings

commit 545b9fd3d737afc0bb5203b1e79194a471605acd upstream.

Some filesystems can call in to sync an inode that is still in the
I_NEW state (eg. ext family, when mounted with -osync). This is OK
because the filesystem has sole access to the new inode, so it can
modify i_state without races (because no other thread should be
modifying it, by definition of I_NEW). Ie. a false positive, so
remove the warnings.

The races are described here 7ef0d7377cb287e08f3ae94cebc919448e1f5dff,
which is also where the warnings were introduced.

Reported-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/fs-writeback.c