Re: [PATCH 05/26] r/o bind mounts: stub functions

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

 



On Fri, Jun 22, 2007 at 01:03:09PM -0700, Dave Hansen wrote:
> 
> This patch adds two function mnt_want_write() and
> mnt_drop_write().  These are used like a lock pair around
> and fs operations that might cause a write to the filesystem.
> 
> Before these can become useful, we must first cover each
> place in the VFS where writes are performed with a
> want/drop pair.  When that is complete, we can actually
> introduce code that will safely check the counts before
> allowing r/w<->r/o transitions to occur.

Ok,

> 
> Note that we put the linux/fs.h #include as far down in
> mount.h as possible.  This is to keep the mount.h->fs.h->
> sched.h->mount.h include dependency from biting us.

except for this.  Please just move __mnt_is_readonly out of line
or make it a macro, but we surely don't want to include fs.h
in mount.h
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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