vfs: add vfs_select_inode() helper