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 <[email protected]>
> Signed-off-by: Al Viro <[email protected]>
> Signed-off-by: Qu Wenruo <[email protected]>

Reviewed-by: David Sterba <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to