On Thu, 6 Aug 2015, Yan, Zheng wrote: > On Thu, Aug 6, 2015 at 5:26 AM, Sage Weil <sweil@xxxxxxxxxx> wrote: > > Today I learned that syncfs(2) does an O(n) search of the superblock's > > inode list searching for dirty items. I've always assumed that it was > > only traversing dirty inodes (e.g., a list of dirty inodes), but that > > appears not to be the case, even on the latest kernels. > > > > I checked syncfs code in 3.10/4.1 kernel. I think both kernels only > traverse dirty inodes (inodes in > bdi_writeback::{b_dirty,b_io,b_more_io} lists). what am I missing? See wait_sb_inodes in fs/fs-writeback.c, called by sync_inodes_sb. sage -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html