Searched refs:MNT_WRITE_HOLD (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/include/linux/
H A Dmount.h33 #define MNT_WRITE_HOLD 0x200 macro
50 #define MNT_INTERNAL_FLAGS (MNT_SHARED | MNT_WRITE_HOLD | MNT_INTERNAL | \
/linux-4.1.27/fs/
H A Dnamespace.c352 * MNT_WRITE_HOLD loop below, so that the slowpath can see our __mnt_want_write()
353 * incremented count after it has set MNT_WRITE_HOLD. __mnt_want_write()
356 while (ACCESS_ONCE(mnt->mnt.mnt_flags) & MNT_WRITE_HOLD) __mnt_want_write()
359 * After the slowpath clears MNT_WRITE_HOLD, mnt_is_readonly will __mnt_want_write()
361 * MNT_WRITE_HOLD is cleared. __mnt_want_write()
498 mnt->mnt.mnt_flags |= MNT_WRITE_HOLD; mnt_make_readonly()
500 * After storing MNT_WRITE_HOLD, we'll read the counters. This store mnt_make_readonly()
516 * MNT_WRITE_HOLD protects against this scenario, because mnt_make_readonly()
518 * MNT_WRITE_HOLD, so it can't be decremented by another CPU while mnt_make_readonly()
526 * MNT_READONLY must become visible before ~MNT_WRITE_HOLD, so writers mnt_make_readonly()
530 mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD; mnt_make_readonly()
547 /* Racy optimization. Recheck the counter under MNT_WRITE_HOLD */ sb_prepare_remount_readonly()
554 mnt->mnt.mnt_flags |= MNT_WRITE_HOLD; sb_prepare_remount_readonly()
570 if (mnt->mnt.mnt_flags & MNT_WRITE_HOLD) sb_prepare_remount_readonly()
571 mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD; sb_prepare_remount_readonly()
977 mnt->mnt.mnt_flags = old->mnt.mnt_flags & ~(MNT_WRITE_HOLD|MNT_MARKED); clone_mnt()

Completed in 116 milliseconds