* ext3/4, btrfs, ocfs2: How to assure that cleancache_invalidate_fs is called on every superblock free
@ 2012-03-09 13:40 Andor Daam
2012-03-12 13:38 ` Jan Kara
0 siblings, 1 reply; 2+ messages in thread
From: Andor Daam @ 2012-03-09 13:40 UTC (permalink / raw)
To: linux-fsdevel, linux-btrfs, linux-ext4, ocfs2-devel
Cc: dan.magenheimer, fschmaus, linux-mm, ilendir, sjenning,
konrad.wilk, i4passt, ngupta
Hello,
Is it ever possible for a superblock for a mounted filesystem to be
free'd without a previous call to unmount the filesystem?
I need to be certain that the function cleancache_invalidate_fs, which
is at the moment called by deactivate_locked_super (fs/super.c) [1],
is called before every free on a superblock of cleancache-enabled
filesystems.
Is this already the case or are there situations in which this does not happen?
It would be interesting to know this, as we are planning to have
cleancache save pointers to superblocks of every mounted
cleancache-enabled filesystem [2] and it would be fatal if a
superblock is free'd without cleancache being notified.
Regards
Andor
[1] commit c515e1fd361c2a08a9c2eb139396ec30a4f477dc
[2] http://marc.info/?l=linux-mm&m=133122649732669&w=2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ext3/4, btrfs, ocfs2: How to assure that cleancache_invalidate_fs is called on every superblock free
2012-03-09 13:40 ext3/4, btrfs, ocfs2: How to assure that cleancache_invalidate_fs is called on every superblock free Andor Daam
@ 2012-03-12 13:38 ` Jan Kara
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kara @ 2012-03-12 13:38 UTC (permalink / raw)
To: Andor Daam
Cc: linux-fsdevel, linux-btrfs, linux-ext4, ocfs2-devel,
dan.magenheimer, fschmaus, linux-mm, ilendir, sjenning,
konrad.wilk, i4passt, ngupta
Hello,
On Fri 09-03-12 14:40:22, Andor Daam wrote:
> Is it ever possible for a superblock for a mounted filesystem to be
> free'd without a previous call to unmount the filesystem?
No, I don't think so (well, except for cases where we do not manage to
fully setup the superblock). But be aware that mount/umount need not be
really the entry points you are looking for since filesystem can be mounted
several times. Rather deactivate_locked_supers() is the place you are
looking for...
> I need to be certain that the function cleancache_invalidate_fs, which is
> at the moment called by deactivate_locked_super (fs/super.c) [1], is
> called before every free on a superblock of cleancache-enabled
> filesystems. Is this already the case or are there situations in which
> this does not happen?
>
> It would be interesting to know this, as we are planning to have
> cleancache save pointers to superblocks of every mounted
> cleancache-enabled filesystem [2] and it would be fatal if a
> superblock is free'd without cleancache being notified.
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-12 13:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-09 13:40 ext3/4, btrfs, ocfs2: How to assure that cleancache_invalidate_fs is called on every superblock free Andor Daam
2012-03-12 13:38 ` Jan Kara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).