[PATCH 26/30] r/o bind mounts: check mnt instead of superblock directly

2008-02-15 Thread Dave Hansen
If we depend on the inodes for writeability, we will not catch the r/o mounts when implemented. This patches uses __mnt_want_write(). It does not guarantee that the mount will stay writeable after the check. But, this is OK for one of the checks because it is just for a printk(). The other two

[RFC][PATCH 26/30] r/o bind mounts: check mnt instead of superblock directly

2008-02-08 Thread Dave Hansen
If we depend on the inodes for writeability, we will not catch the r/o mounts when implemented. This patches uses __mnt_want_write(). It does not guarantee that the mount will stay writeable after the check. But, this is OK for one of the checks because it is just for a printk(). The other two