Currently, exclusion between ->page_mkwrite() and filesystem freezing has been handled by setting page dirty and then verifying s_frozen. This guaranteed that either the freezing code sees the faulte
Since this function is needed for calling __block_page_mkwrite(), which is EXPORT_SYMBOL(), both sb_start_write() and sb_end_write() themselves need to be EXPORT_SYMBOL(). Cheers, Andreas
Right. Leftover from original implementation and since I was doing initial testing only using UML, I didn't spot this. Thanks. Fixed. Yes. Fixed. Thanks for review. Honza -- Jan Kara <jack@xxxxxxx> S
I really dislike this type of open coded per-cpu counter implementation. I can't see that there is no good reason to use it over percpu_counters here which abstract all this mess away. i.e. it is rel
Well, I just did it the way mnt_want_write / mnt_put_write does it. But you are right that it's unnecessary so it's a good idea to switch the code to using per-cpu counters. Thanks for the idea. Honz