Hi, I have reduced use of sget() and bd_mount_sem in nilfs with the following patches. I believe the direction of this series is not wrong, but if it discords from WIP cleanups in vfs, let me know please. This series is unfinished, and the following works are at least remaining: * clarify exclusion control especially for MS_RDONLY flag in sb->s_flags. * cleanups of nilfs_remount(). * clarify what is supposed to in nilfs_remount() and nilfs_get_sb(). Spec comments should be added to these functions. -- Ryusuke Konishi (4): nilfs2: remove meaningless EBUSY case from nilfs_get_sb function nilfs2: stop using sget to check if current mount is there nilfs2: stop using sget to acquire nilfs object nilfs2: reduce bd_mount_sem use to a minimum fs/nilfs2/cpfile.c | 6 +- fs/nilfs2/super.c | 165 ++++++++++-------------------------------------- fs/nilfs2/the_nilfs.c | 93 +++++++++++++++++++++++++++- fs/nilfs2/the_nilfs.h | 8 ++- 4 files changed, 135 insertions(+), 137 deletions(-) - The "nilfs2: stop using sget to check if current mount is there" and "nilfs2: stop using sget to acquire nilfs object" eliminate two sget() calls from nilfs_get_sb(). The "nilfs2: reduce bd_mount_sem use to a minimum" eliminates bd_mount_sem use except for ones surrouding an sget() call. The "nilfs2: remove meaningless EBUSY case from nilfs_get_sb function" is a trivial fix. Thanks, Ryusuke Konishi -- 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