mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* mark_inode_dirty question
@ 2000-12-16 12:47 Jani Monoses
  2000-12-16 14:26 ` Andrea Arcangeli
  0 siblings, 1 reply; 3+ messages in thread
From: Jani Monoses @ 2000-12-16 12:47 UTC (permalink / raw)
  To: viro; +Cc: linux-kernel


Hi Al,

I see that
		( (inode->i_state & flags) != flags ) 

checked in __mark_inode_dirty as well as before it is called in
mark_inode_dirty and mark_inode_dirty_sync .Could the i_state be changed
during the call (on another CPU)?

Thanks 
Jani.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mark_inode_dirty question
  2000-12-16 12:47 mark_inode_dirty question Jani Monoses
@ 2000-12-16 14:26 ` Andrea Arcangeli
  2000-12-16 14:35   ` Jani Monoses
  0 siblings, 1 reply; 3+ messages in thread
From: Andrea Arcangeli @ 2000-12-16 14:26 UTC (permalink / raw)
  To: Jani Monoses; +Cc: viro, linux-kernel

On Sat, Dec 16, 2000 at 02:47:16PM +0200, Jani Monoses wrote:
> mark_inode_dirty and mark_inode_dirty_sync .Could the i_state be changed
> during the call (on another CPU)?

no because you're protected by the inode_lock.

Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mark_inode_dirty question
  2000-12-16 14:26 ` Andrea Arcangeli
@ 2000-12-16 14:35   ` Jani Monoses
  0 siblings, 0 replies; 3+ messages in thread
From: Jani Monoses @ 2000-12-16 14:35 UTC (permalink / raw)
  To: Andrea Arcangeli; +Cc: linux-kernel



On Sat, 16 Dec 2000, Andrea Arcangeli wrote:

> On Sat, Dec 16, 2000 at 02:47:16PM +0200, Jani Monoses wrote:
> > mark_inode_dirty and mark_inode_dirty_sync .Could the i_state be changed
> > during the call (on another CPU)?
> 
> no because you're protected by the inode_lock.
> 
> Andrea
> 

Thanks but
I meant between the moment the call from mark_* is made and the lock is
taken.I suppose it can be changed thus the double check in both caller and
callee.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-12-16 15:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-16 12:47 mark_inode_dirty question Jani Monoses
2000-12-16 14:26 ` Andrea Arcangeli
2000-12-16 14:35   ` Jani Monoses

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®