On Fri, Jan 30, 2015 at 05:20:51PM +0800, Qu Wenruo wrote: > So introduce new sb_want_write() to do the protection agains a super > block, which acts much like mnt_want_write() but will return success if > the super block is read-write. I like the new interface and think that it could be used in the per-fs background threads instead of the raw MS_RDONLY checks. From a brief look it may not apply everywhere as sb_start_write could wait, but there are a few candidates. > > Cc: linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx> > Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx> > Signed-off-by: Qu Wenruo <quwenruo@xxxxxxxxxxxxxx> Reviewed-by: David Sterba <dsterba@xxxxxxx> -- 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